If a deployment is experiencing high memory pressure or out-of-memory events, you can capture the JVM heap dump for further analysis.
To capture heap dumps for your deployment:
- Log into the Cloud UI.
From the Deployments page, select your deployment.
Narrow the list by name, ID, or choose from several other filters. To further define the list, use a combination of filters.
- In the deployment menu, go to Operations and then Heap dumps.
- Choose a duration and click Capture heap dumps.
Restart the instances that you want to capture heap dumps, either by pausing and resuming the instance or restarting the whole deployment.
The capture duration timer starts immediately, regardless of when the instance gets restarted. For example, if you set the time for 24 hours but wait until the 23 hour to restart, the system only gathers captures for 1 hour.
On the next
OutOfMemoryError event, heap dumps are collected in the
/app/logs directory for the instance that is running on the allocator during the specified capture duration. Each heap dump capture remains available for only seven days.