jmap -heap broken since update to 7u95-2.6.4-0ubuntu0.14.04.1
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
openjdk-7 (Debian) |
Fix Released
|
Unknown
|
|||
openjdk-7 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned | ||
openjdk-8 (Ubuntu) |
Fix Released
|
Undecided
|
Unassigned |
Bug Description
The jmap -heap <pid> command is broken since the update to 7u95-2.
Given a tomcat process running with openjdk-7 under a non-root user.
Before that update sudo jmap -heap <pid> gave output about heap configured on top + also the heap usage inside each reason of the java heap (eden, old gen, permgen) etc...
Note: running as root is and was required even before to get the '-heap' option to work. Where as running 'jmap -dump:file' only works when running as user the jvm runs under and not root. That just as context as it is strange behavior of jmap since a long time.
After the update to the specified version only the intro is shown and instead of the usage the following error:
Attaching to process ID 1571, please wait...
Debugger attached successfully.
Server compiler detected.
JVM version is 24.95-b01
using thread-local object allocation.
Parallel GC with 2 thread(s)
Heap Configuration:
MinHeapFreeRatio = 0
MaxHeapFreeRatio = 100
MaxHeapSize = 1363148800 (1300.0MB)
NewSize = 1310720 (1.25MB)
MaxNewSize = 17592186044415 MB
OldSize = 5439488 (5.1875MB)
NewRatio = 2
SurvivorRatio = 8
PermSize = 21757952 (20.75MB)
MaxPermSize = 268435456 (256.0MB)
G1HeapRegionSize = 0 (0.0MB)
Heap Usage:
Exception in thread "main" java.lang.
at sun.reflect.
at sun.reflect.
at sun.reflect.
at java.lang.
at sun.tools.
at sun.tools.
Caused by: java.lang.
at sun.jvm.
at sun.jvm.
at sun.jvm.
... 6 more
The last version before we noticed that bug was:
7u91-2.
Not 100% sure that this exact version still worked but quite sure.
We could reproduce the issue in 2 different servers both running 14.04 LTS 64bit
Changed in openjdk-7 (Debian): | |
status: | Unknown → New |
Changed in openjdk-7 (Debian): | |
status: | New → Fix Released |
Only public comment i found looking maybe related is old bug here: /bugzilla. redhat. com/show_ bug.cgi? id=1010786
https:/
Talking about missing debug symbols.
I tried blindly installing openjdk-7-dbg package as a quick test, but no change still failed.