allocates heap memory beyond RLIMIT_AS
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-6 (Ubuntu) |
New
|
Undecided
|
Unassigned |
Bug Description
During default startup, openjdk-6 appears to allocate heap memory based on something different than getrlimit(
$ free
total used free shared buffers cached
Mem: 8000320 7907296 93024 0 574804 4336192
-/+ buffers/cache: 2996300 5004020
Swap: 3903672 301564 3602108
$ bootstrap/
java version "1.6.0_0"
OpenJDK 1.4 (6b14-0ubuntu15
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)
$ ulimit -v 1024000
$ bootstrap/
Error occurred during initialization of VM
Could not reserve enough space for object heap
Could not create the Java virtual machine.
$ strace -f -e trace=mmap bootstrap/
...
[pid 1187] mmap(NULL, 2225078272, PROT_READ|
...
$ bootstrap/
java version "1.6.0_0"
OpenJDK 1.4 (6b14-0ubuntu15
OpenJDK 64-Bit Server VM (build 14.0-b08, mixed mode)