JDK-7188594 : Print statistic collected by NMT with VM flag
  • Type: Enhancement
  • Component: hotspot
  • Sub-Component: runtime
  • Affected Version: hs24
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2012-08-01
  • Updated: 2013-06-26
  • Resolved: 2012-09-19
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7 JDK 8 Other
7u40Fixed 8Fixed hs24Fixed
Related Reports
Relates :  
Relates :  
NMT (Native Memory Tracking) is very powerful tool. It would help greatly to Hotspot developers to show how much memory is used by different VM parts without using additional applications (jcmd, JFR) to access collected data. It could use already existing in Hotspot VM mechanism to dump collected statistic during VM exit. See print_statistics() method in src/share/vm/runtime/java.cpp which is called from before_exit() method.

Add new flag -XX:+PrintNMTStatistics with which the output is produced. NMT statistic output could show how much memory is used per memory type and total. Also it could print methods (from collected call stack) which are main users of native memory.

EVALUATION http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9a86ddfc6c8f