KB Article #178561

How to generate a JVM thread dump?

Problem

How to generate a JVM thread dump ?

Resolution

Option 1: Using the script (This script is available starting with release 20160229)

Execute the script <platform dir>/bin/tnd-dump-threads.bat (Windows) or <platform dir>/bin/tnd-dump-threads.sh (Linux).

Option 2: Using Java tools

The following steps requires the use of a JDK or a Server JRE. If you only installed a JRE to run the platform, you will not have access to the following tools.

$JAVA_HOME/bin/jcmd Thread.print -l 32088 > tdump.txt

32088 is the pid (The process id is written in var/run/pid)