Collecting a Thread Dump on Tomcat on UNIX

A thread dump is a log containing information about currently running threads and processes. It can be useful during troubleshooting when trying to identify exactly when an issue occurs.

To collect a thread dump from Tomcat on UNIX

Either:
  1. Run Tomcat in the foreground. At the command prompt, type $TOMCAT_HOME/bin/catalina.sh.
  2. Dump the threads to stdout with Ctrl-\.
or:
  1. Run Tomcat in the background.
  2. Type kill -s SIGQUIT <process id> and press Enter.

Look in catalina.out for the thread dumps.