Request for Review: 7120511: Add diagnostic commands

Frederic Parain frederic.parain at oracle.com
Thu Jan 5 07:19:40 PST 2012


This changeset aims to add a first set of diagnostic commands
to the HotSpot JVM. It also includes minor modifications to
the diagnostic command framework implementation to ease
development of new diagnostic commands.

The webrev is here:

http://cr.openjdk.java.net/~fparain/7120511/webrev.00/


Here's the list of new diagnostic commands:

Thread.print
         Print all threads with stacktraces.

GC.class_histogram
         Provides statistics about the Java heap usage

GC.heap_dump
         Generate a HPROF format dump of the Java heap

GC.run_finalization
         Call java.lang.System.runFinalization().

GC.run
         Call java.lang.System.gc().

VM.uptime
         Print VM uptime.

VM.flags
         Print VM flag options and their current values.

VM.system_properties
         Print system properties

VM.command_line
         Print the command line used to start this VM instance.


Thanks,

Fred

-- 
Frederic Parain - Oracle
Grenoble Engineering Center - France
Phone: +33 4 76 18 81 17
Email: Frederic.Parain at Oracle.com



More information about the serviceability-dev mailing list