How do I get a thread dump

In order to obtain the Java thread dump, you will need to get the PID of your tomcat process.

Here is an example on how to do it on Windows.

On Linux use:

ps -aef | grep java

After you get the PID, in your console navigate to 

${JAVA_HOME}/bin’ and run jstack -l <PID> > thread_dump.txt


Note that the user executing jstack must be the same user who owns the JVM process or have sufficient privileges to access it.

In Windows, replace jstack with jstack.exe