接口 HeapDumpWebEndpoint.HeapDumper
- 函数接口:
- 这是一个函数接口, 因此可用作 lambda 表达式或方法引用的赋值目标。
@FunctionalInterface protected static interface HeapDumpWebEndpoint.HeapDumper
Strategy interface used to dump the heap to a file.
方法详细资料
dumpHeap
void dumpHeap(File file, boolean live) throws IOException, InterruptedException
Dump the current heap to the specified file.- 参数:
file
- the file to dump the heap tolive
- if only live objects (i.e. objects that are reachable from others) should be dumped- 抛出:
IOException
- on IO errorInterruptedException
- on thread interruption