United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-7188594 Print statistic collected by NMT with VM flag
JDK-7188594 : Print statistic collected by NMT with VM flag

Details
Type:
Enhancement
Submit Date:
2012-08-01
Status:
Closed
Updated Date:
2013-06-21
Project Name:
JDK
Resolved Date:
2012-09-19
Component:
hotspot
OS:
generic
Sub-Component:
runtime
CPU:
generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
hs24
Fixed Versions:
8-pool (team)

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

Sub Tasks

Description
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.

                                    

Comments
EVALUATION

http://hg.openjdk.java.net/hsx/hotspot-rt/hotspot/rev/9a86ddfc6c8f
                                     
2012-09-18



Hardware and Software, Engineered to Work Together