This version is still in development and is not considered stable yet. For the latest stable version, please use Spring Boot 3.3.2! |
Heap Dump (heapdump
)
The heapdump
endpoint provides a heap dump from the application’s JVM.
Retrieving the Heap Dump
To retrieve the heap dump, make a GET
request to /actuator/heapdump
.
The response is binary data and can be large.
Its format depends upon the JVM on which the application is running.
When running on a HotSpot JVM the format is HPROF
and on OpenJ9 it is PHD.
Typically, you should save the response to disk for subsequent analysis.
When using curl, this can be achieved by using the -O
option, as shown in the following example:
$ curl 'http://localhost:8080/actuator/heapdump' -O
The preceding example results in a file named heapdump
being written to the current working directory.