Interface HeapdumpMvcEndpoint.HeapDumper
- All Known Implementing Classes:
HeapdumpMvcEndpoint.HotSpotDiagnosticMXBeanHeapDumper
- Enclosing class:
- HeapdumpMvcEndpoint
protected static interface HeapdumpMvcEndpoint.HeapDumper
Strategy interface used to dump the heap to a file.
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
dumpHeap(File file, boolean live)
Dump the current heap to the specified file.
Method Detail
dumpHeap
void dumpHeap(File file, boolean live) throws IOException, InterruptedException
Dump the current heap to the specified file.- Parameters:
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from others) should be dumped- Throws:
IOException
- on IO errorInterruptedException
- on thread interruption