Class HeapDumpWebEndpoint
java.lang.Object
org.springframework.boot.actuate.management.HeapDumpWebEndpoint
Web
@Endpoint
to expose heap dumps.- Since:
- 2.0.0
- Author:
- Lari Hotari, Phillip Webb, Raja Kolli, Andy Wilkinson
-
Nested Class Summary
Modifier and TypeClassDescriptionprotected static interface
Strategy interface used to dump the heap to a file.protected static class
Exception to be thrown if theHeapDumpWebEndpoint.HeapDumper
cannot be created.protected static class
HeapDumpWebEndpoint.HeapDumper
that usescom.sun.management.HotSpotDiagnosticMXBean
, available on Oracle and OpenJDK, to dump the heap to a file. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected HeapDumpWebEndpoint.HeapDumper
Factory method used to create theHeapDumpWebEndpoint.HeapDumper
.
-
Constructor Details
-
HeapDumpWebEndpoint
public HeapDumpWebEndpoint() -
HeapDumpWebEndpoint
protected HeapDumpWebEndpoint(long timeout)
-
-
Method Details
-
heapDump
-
createHeapDumper
protected HeapDumpWebEndpoint.HeapDumper createHeapDumper() throws HeapDumpWebEndpoint.HeapDumperUnavailableExceptionFactory method used to create theHeapDumpWebEndpoint.HeapDumper
.- Returns:
- the heap dumper to use
- Throws:
HeapDumpWebEndpoint.HeapDumperUnavailableException
- if the heap dumper cannot be created
-