Jmap -heap on all OpenJDK 1.7.79+ on Linux x86_64 crash
Andrew Haley
aph at redhat.com
Tue Apr 18 07:48:39 UTC 2017
I'll take a look at this one. Andrew, do you know if there is any
Red Hat bug report?
On 18/04/17 06:31, Andrew Hughes wrote:
>
>
> ----- Original Message -----
>>> I ran across this bug report
>>> (https://bugs.launchpad.net/ubuntu/+source/openjdk-7/+bug/1548434) and it
>>> seems in Wheezy/Jessie it's likewise. The last functional version I just
>>> so happened to hold onto is 7u79-2.5.5-1~deb7u1.
>>>
>>> The following are confirmed to throw an Exception
>>> * 7u111-2.6.7-2~deb8
>>> * 7u121-2.6.8-1~deb7u1
>>> * 7u95-2.6.4-1~deb7u1
>>>
>>> Here is an example run with 7u121 - http://pastebin.com/tzRk7xTH
>>
>> I can confirm that on RHEL family distributions it occurs as well even with
>> 131 which came out a couple weeks ago. Additionally it would be tremendously
>> helpful if 'jmap' were moved back into the main package and not relegated to
>> -devel. It is a tremendously useful program for day to day operations.
>>
>> Linux ip-172-17-0-41 4.4.44-39.55.amzn1.x86_64 #1 SMP Mon Jan 30 18:15:53 UTC
>> 2017 x86_64 x86_64 x86_64 GNU/Linux
>> java-1.7.0-openjdk-1.7.0.131-2.6.9.0.71.amzn1.x86_64
>> java-1.7.0-openjdk-devel-1.7.0.131-2.6.9.0.71.amzn1.x86_64
>>
>>
>> # jmap -heap 2436
>> Attaching to process ID 2436, please wait...
>> Debugger attached successfully.
>> Server compiler detected.
>> JVM version is 24.131-b00
>>
>> using thread-local object allocation.
>> Garbage-First (G1) GC with 2 thread(s)
>>
>> Heap Configuration:
>> MinHeapFreeRatio = 25
>> MaxHeapFreeRatio = 70
>> MaxHeapSize = 2684354560 (2560.0MB)
>> NewSize = 1363144 (1.2999954223632812MB)
>> MaxNewSize = 17592186044415 MB
>> OldSize = 5452592 (5.1999969482421875MB)
>> NewRatio = 2
>> SurvivorRatio = 5
>> PermSize = 402653184 (384.0MB)
>> MaxPermSize = 536870912 (512.0MB)
>> G1HeapRegionSize = 1048576 (1.0MB)
>>
>> Heap Usage:
>> Exception in thread "main" java.lang.reflect.InvocationTargetException
>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
>> at
>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
>> at
>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
>> at java.lang.reflect.Method.invoke(Method.java:606)
>> at sun.tools.jmap.JMap.runTool(JMap.java:197)
>> at sun.tools.jmap.JMap.main(JMap.java:128)
>> Caused by: java.lang.RuntimeException: unknown CollectedHeap type : class
>> sun.jvm.hotspot.gc_interface.CollectedHeap
>> at sun.jvm.hotspot.tools.HeapSummary.run(HeapSummary.java:146)
>> at sun.jvm.hotspot.tools.Tool.start(Tool.java:221)
>> at sun.jvm.hotspot.tools.HeapSummary.main(HeapSummary.java:40)
>> ... 6 more
>>
>> ________________________________
>>
>> If you wish to view the CPA Global group email disclaimer, please click
>> here<https://www.cpaglobal.com/Privacy/CPAGlobalEmailDisclaimer/>
>> ________________________________
>>
>
> Try installing java-1.7.0-openjdk-debuginfo.
>
More information about the jdk7u-dev
mailing list