← Back to team overview

openjdk team mailing list archive

[Bug 1241926] Re: Cannot run java with a uliimt of 2GB virtual memory

 

Status changed to 'Confirmed' because the bug affects multiple users.

** Changed in: openjdk-7 (Ubuntu)
       Status: New => Confirmed

-- 
You received this bug notification because you are a member of OpenJDK,
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


References