Class HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
java.lang.Object
org.springframework.boot.actuate.management.HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
- All Implemented Interfaces:
HeapDumpWebEndpoint.HeapDumper
- Enclosing class:
- HeapDumpWebEndpoint
protected static class HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
extends Object
implements HeapDumpWebEndpoint.HeapDumper
HeapDumpWebEndpoint.HeapDumper
that uses com.sun.management.HotSpotDiagnosticMXBean
,
available on Oracle and OpenJDK, to dump the heap to a file.-
Constructor Summary
-
Method Summary
-
Constructor Details
-
HotSpotDiagnosticMXBeanHeapDumper
protected HotSpotDiagnosticMXBeanHeapDumper()
-
-
Method Details
-
dumpHeap
Description copied from interface:HeapDumpWebEndpoint.HeapDumper
Dump the current heap to the specified file.- Specified by:
dumpHeap
in interfaceHeapDumpWebEndpoint.HeapDumper
- Parameters:
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from others) should be dumped
-