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 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
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected HeapDumpWebEndpoint.HeapDumper
Factory 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
-