How do I get a thread dump

In order to obtain the Java thread dump, you 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.exe -l <PID> > thread_dump.txt


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