Collect all the Tomcat's threads' stacks logs

Last modified by Aurelie Bertrand on 2022/02/15 18:04


Introduction

In some blocking case, it could be useful to collect all the logs of the Tomcat threads for investigation purpose. 

This procedure explain how to do it. 

Following this procedure may freeze the DigDash Enteprise application for a few seconds. 
This procedure should only proceed on the recommendation of a DigDash consultant.

Collect all the logs (for Unix servers)

  1. The server is in a situation that demands to restart it
  2. Get the Tomcat's PID (process id) using ps, htop, or any other tool
  3. On the command prompt, execute the following :
    kill -3 <Tomcat PID>
  4. Retrieve catalina.log (or catalina.out) file to communicate to the technical team.