JDK-6283436 : Diagnostic MBean for hotspot VM
  • Type: Enhancement
  • Component: core-svc
  • Sub-Component: java.lang.management
  • Affected Version: 1.2.0,1.3.1,5.0
  • Priority: P4
  • Status: Resolved
  • Resolution: Fixed
  • OS: generic,windows_2000
  • CPU: generic,x86
  • Submitted: 2005-06-09
  • Updated: 2017-05-16
  • Resolved: 2005-08-20
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 6
6 b49Fixed
Related Reports
Duplicate :  
Relates :  
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 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.
25-04-2008

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

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