Class: sun.management.HotSpotDiagnostic
- public class HotSpotDiagnostic
- implements HotSpotDiagnosticMXBean
Implementation of the diagnostic MBean for Hotspot VM.
Methods
-
HotSpotDiagnostictop
public HotSpotDiagnostic() -
dumpHeaptop
public native void dumpHeap(String outputFile, boolean live) throws IOExceptionDumps the heap to the outputFile file in the same format as the hprof heap dump.If this method is called remotely from another process, the heap dump output is written to a file named outputFile on the machine where the target VM is running. If outputFile is a relative path, it is relative to the working directory where the target VM was started.
- Specified by:
- dumpHeap from HotSpotDiagnosticMXBean
-
getDiagnosticOptionstop
Returns a list of VMOption objects for all diagnostic options. A diagnostic option is a writeable VM option that can be set dynamically mainly for troubleshooting and diagnosis.- Specified by:
- getDiagnosticOptions from HotSpotDiagnosticMXBean
-
getVMOptiontop
Returns a VMOption object for a VM option of the given name.- Specified by:
- getVMOption from HotSpotDiagnosticMXBean
-
setVMOptiontop
Sets a VM option of the given name to the specified value. The new value will be reflected in a new VMOption object returned by the com.sun.management.HotSpotDiagnosticMXBean.getVMOption(java.lang.String) method or the com.sun.management.HotSpotDiagnosticMXBean.getDiagnosticOptions() method. This method does not change the value of this VMOption object.- Specified by:
- setVMOption from HotSpotDiagnosticMXBean
