Generating JVM thread and heap dumps

The container images are shipped with utilities for capturing JVM thread and heap dumps. The following sections explain how to generate the application server and agent server JVM thread and heap dumps.

Note: Ensure that you set the -Xdump:heap+java:events=user JVM argument for application or agent server.
Application servers
To generate a Liberty server dump from the command line, follow the steps provided in IBM® Documentation.
Agent servers
To generate the heapdump, send the agent server a Linux signal by running the following command:
kill -3 <java process ID>

This command does not "kill" the agent server process. It only sends the Java process a signal 3 and creates a heapdump and a javacore.