@WebEndpoint(id="heapdump") public class HeapDumpWebEndpoint extends Object
@Endpoint
to expose heap dumps.Modifier and Type | Class and Description |
---|---|
protected static interface |
HeapDumpWebEndpoint.HeapDumper
Strategy interface used to dump the heap to a file.
|
protected static class |
HeapDumpWebEndpoint.HeapDumperUnavailableException
Exception to be thrown if the
HeapDumpWebEndpoint.HeapDumper cannot be created. |
protected static class |
HeapDumpWebEndpoint.HotSpotDiagnosticMXBeanHeapDumper
HeapDumpWebEndpoint.HeapDumper that uses com.sun.management.HotSpotDiagnosticMXBean
available on Oracle and OpenJDK to dump the heap to a file. |
Modifier | Constructor and Description |
---|---|
|
HeapDumpWebEndpoint() |
protected |
HeapDumpWebEndpoint(long timeout) |
Modifier and Type | Method and Description |
---|---|
protected HeapDumpWebEndpoint.HeapDumper |
createHeapDumper()
Factory method used to create the
HeapDumpWebEndpoint.HeapDumper . |
WebEndpointResponse<Resource> |
heapDump(Boolean live) |
public HeapDumpWebEndpoint()
protected HeapDumpWebEndpoint(long timeout)
@ReadOperation public WebEndpointResponse<Resource> heapDump(@Nullable Boolean live)
protected HeapDumpWebEndpoint.HeapDumper createHeapDumper() throws HeapDumpWebEndpoint.HeapDumperUnavailableException
HeapDumpWebEndpoint.HeapDumper
.HeapDumpWebEndpoint.HeapDumperUnavailableException
- if the heap dumper cannot be createdCopyright © 2019 Pivotal Software, Inc.. All rights reserved.