@UsesJava7 protected static class HeapdumpMvcEndpoint.HotSpotDiagnosticMXBeanHeapDumper extends Object implements HeapdumpMvcEndpoint.HeapDumper
HeapdumpMvcEndpoint.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)
HeapdumpMvcEndpoint.HeapDumper
dumpHeap
in interface HeapdumpMvcEndpoint.HeapDumper
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from
others) should be dumpedCopyright © 2019 Pivotal Software, Inc.. All rights reserved.