United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6283436 Diagnostic MBean for hotspot VM
JDK-6283436 : Diagnostic MBean for hotspot VM

Details
Type:
Enhancement
Submit Date:
2005-06-09
Status:
Resolved
Updated Date:
2010-04-02
Project Name:
JDK
Resolved Date:
2005-08-20
Component:
core-svc
OS:
generic,windows_2000
Sub-Component:
java.lang.management
CPU:
x86,generic
Priority:
P4
Resolution:
Fixed
Affected Versions:
1.2.0,1.3.1,5.0
Fixed Versions:

Related Reports
Duplicate:
Relates:

Sub Tasks

Description
A diagnostic MBean to expose the Hotspot VM diagnostic support we add in Mustang.

It includes heap dump capability and also dynamic setting of a few diagnostic VM XX flags including PrintClassHistogram, PrintConcurrentLocks, etc.

JMX compliant tool (e.g. jconsole) will be able to access this Diagnostic MBean 
directly.


###@###.### 2005-06-09 19:53:59 GMT

                                    

Comments
EVALUATION

Will add in Mustang.
###@###.### 2005-06-09 19:54:43 GMT
                                     
2005-06-09
SUGGESTED FIX

Add a new interface com.sun.management.HotSpotDiagnosticMXBean which has a method:
   public void dumpHeap(String outputfile) throws IOException
                                     
2005-08-04
EVALUATION

The javadoc for HotSpotDiagnosticMXBean is at:

http://java.sun.com/javase/6/docs/jre/api/management/extension/com/sun/management/HotSpotDiagnosticMXBean.html

In JDK 6, you can get HotSpotDiagnosticMXBean through the platform MBean Server (ManagementFactory.getPlatformMBeanServer()).

In JDK 7, a new method is added to obtain a platform MXBean of a specified type something like this:
HotSpotDiagnosticMXBean mxbean = 
   ManagementFactory.getPlatformMXBeans(com.sun.management.HotSpotDiagnosticMXBean.class);

See 6610094 Add generic support for platform MXBeans of any type.
                                     
2008-04-25



Hardware and Software, Engineered to Work Together