Server Thread Dumps
Thread dumps of a java process can be retrieved using Jstack.
Fetch Server Process ID
Get the server's JVM Process ID.
Figure 1: Gateway Server Console showing Server's Process ID
Server Thread Dumps from JVM Process ID using jstack
After fetching server's process ID (refer to the Fetch Server Process ID section), to get the thread dump using jstack, open a new console window and use the command below to store the thread dump to the threadDump.txt file:
Figure 2: jstack command
To analyze the status of the each thread of the server, take 5 times of threaddumps with a time interval of 5 seconds.
Server Heap Dumps
Server Heap Dumps from JVM Process ID using jmap
After fetching server's process ID (refer to the Fetch Server Process ID section), to get the heap dump using jmap, open a new console window and use the following command to store the heap dump to heapDump.bin file:
jmap -dump:format=b,file=heapDump.bin <pid>
Figure 3: jmap Command