Class HeapDumpWebEndpoint
java.lang.Object
org.springframework.boot.actuate.management.HeapDumpWebEndpoint
Web
@Endpoint to expose heap dumps.- Since:
- 2.0.0
-
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.WebEndpointResponse<org.springframework.core.io.Resource>
-
Constructor Details
-
HeapDumpWebEndpoint
public HeapDumpWebEndpoint() -
HeapDumpWebEndpoint
protected HeapDumpWebEndpoint(long timeout)
-
-
Method Details
-
heapDump
@ReadOperation public WebEndpointResponse<org.springframework.core.io.Resource> heapDump(@Nullable Boolean live) -
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
-