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.Modifier | Constructor and Description |
---|---|
protected |
HotSpotDiagnosticMXBeanHeapDumper() |
Modifier and Type | Method and Description |
---|---|
void |
dumpHeap(File file,
boolean live)
Dump the current heap to the specified file.
|
public void dumpHeap(File file, boolean live)
HeapDumpWebEndpoint.HeapDumper
dumpHeap
in interface HeapDumpWebEndpoint.HeapDumper
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from
others) should be dumpedCopyright © 2017 Pivotal Software, Inc.. All rights reserved.