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
Nested ClassesModifier and TypeClassDescriptionprotected static interfaceStrategy interface used to dump the heap to a file.protected static classException to be thrown if theHeapDumpWebEndpoint.HeapDumpercannot be created.protected static classHeapDumpWebEndpoint.HeapDumperthat usescom.sun.management.HotSpotDiagnosticMXBean, available on Oracle and OpenJDK, to dump the heap to a file. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HeapDumpWebEndpoint.HeapDumperFactory 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
-