United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-8005936 PrintNMTStatistics doesn't work for normal JVM exit
JDK-8005936 : PrintNMTStatistics doesn't work for normal JVM exit

Details
Type:
Bug
Submit Date:
2013-01-09
Status:
Resolved
Updated Date:
2013-07-02
Project Name:
JDK
Resolved Date:
2013-07-02
Component:
hotspot
OS:
Sub-Component:
runtime
CPU:
Priority:
P3
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
hs25 (b16)

Related Reports
Backport:
Backport:
Backport:
Backport:
Relates:

Sub Tasks

Description
The PrintNMTStatistics flag doesn't work for normal JVM exit, works for Ctrl-C / sigint though. Turns out that print_memory_usage() is called but when trying to get the snapshot with get_snapshot() we return NULL since NMT is shutting down also.

Attaching reproducer from Filipp Zhinkin who found this issue, repro with:

java -XX:+UnlockDiagnosticVMOptions -XX:NativeMemoryTracking=detail -XX:+PrintNMTStatistics Test 5
                                    

Comments
URL:   http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/e0cf9af8978e
User:  zgu
Date:  2013-01-11 21:00:51 +0000

                                     
2013-01-11
URL:   http://hg.openjdk.java.net/hsx/hsx25/hotspot/rev/e0cf9af8978e
User:  amurillo
Date:  2013-01-18 16:07:01 +0000

                                     
2013-01-18



Hardware and Software, Engineered to Work Together