Giant Bug: Cannot run java with a virtual mem limit (ulimit -v)
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Ubuntu) |
Confirmed
|
Undecided
|
Unassigned |
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/
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-
ProcVersionSign
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)
summary: |
- Cannot run java with a uliimt of 2GB virtual memory + Giant Bug: Cannot run java with a virtual mem limit (ulimit -v) |
Status changed to 'Confirmed' because the bug affects multiple users.