[Bug 1241926] Re: Giant Bug: Cannot run java with a virtual mem limit (ulimit -v)

Martin Babutzka martin.babutzka at web.de
Thu Jan 22 14:51:34 UTC 2015


* I wanted to add that I dont want to ultimatively blame Java for this.
There is aweseome software out there written in Java. But this VM
behavior really did cost me a lot of time and nerves.

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to openjdk-7 in Ubuntu.
https://bugs.launchpad.net/bugs/1241926

Title:
  Giant Bug: Cannot run java with a virtual mem limit (ulimit -v)

Status in openjdk-7 package in Ubuntu:
  Confirmed

Bug description:
  $ java
  Usage: java [-options] class [args...]
             (to execute a class)
     or  java [-options] -jar jarfile [args...]
             (to execute a jar file)
  [...]
  $ ulimit -v 2097152
  $ java
  #
  # There is insufficient memory for the Java Runtime Environment to continue.
  # pthread_getattr_np
  # An error report file with more information is saved as:
  # /home/moritz/hs_err_pid16051.log

  This is no reason why java should try to allocate more than 2 GB of
  RAM for diplaying a simple help message. If it does need much memory,
  it should inspect existng limits to make sure it doesn't try to
  allocate more than the resource limit.

  It's very inconvenient not to be able to run java just because of
  (very generous) per user ulimits.

  ProblemType: Bug
  DistroRelease: Ubuntu 12.04
  Package: openjdk-7-jre-headless 7u25-2.3.10-1ubuntu0.12.04.2
  ProcVersionSignature: Ubuntu 3.8.0-31.46~precise1-generic 3.8.13.8
  Uname: Linux 3.8.0-31-generic x86_64
  ApportVersion: 2.0.1-0ubuntu17.5
  Architecture: amd64
  Date: Sat Oct 19 07:08:18 2013
  EcryptfsInUse: Yes
  InstallationMedia: Ubuntu 12.04.3 LTS "Precise Pangolin" - Release amd64 (20130820.1)
  MarkForUpload: True
  SourcePackage: openjdk-7
  UpgradeStatus: No upgrade log present (probably fresh install)

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1241926/+subscriptions



More information about the foundations-bugs mailing list