How to Generate a Thread Dump of your JAVA process.

A thread dump reveals information about an application's thread activity that can help you diagnose problems and better optimize application and JVM performance when using our Java hosting packages.

Step 1) Note the process ID number of the Java process using below command.

"ps -u USER" where USER is your username and then you look for the 'java' process


[bktsttom@jpcloudusa004 ~]$ ps -u bktsttom
57833 ?        23:44:31 java
17729 pts/2    00:00:00 bash
17781 pts/2    00:00:00 ps

Notice the PID column? You want the PID number corrisponding to the java row.

Step 2) send a QUIT signal to the process with the kill -QUIT


kill -QUIT 57833

Step 3) Read logs in tomcat/logs/catalina.out.


[bktsttom@jpcloudusa004 ~]$ tail -200 tomcat/logs/catalina.out
Full thread dump Java HotSpot(TM) 64-Bit Server VM (20.45-b01 mixed mode):
"TP-Monitor" daemon prio=10 tid=0x00007f2334326800 nid=0xe202 in Object.wait() [0x00007f22f98d3000]
   java.lang.Thread.State: TIMED_WAITING (on object monitor)
        at java.lang.Object.wait(Native Method)
  • 1 Users Found This Useful
Was this answer helpful?

Related Articles

Spring Framework

Need to develop Plain Old JAVA Objects? Want to have fun developing your application? Then we...

Subdomain Handling Tutorial

This tutorial explains how you can host subdomains with JavaPipe's Tomcat hosting. This is...

Pointer Domain Handling Tutorial

This tutorial explains how you can host pointer domains with a Java web hosting package from...

Choosing between JBoss7's Standalone or Domain features.

JBoss 7 introduced new feature called managed domains. Basically this is a multi-server...

How do I restart my tomcat?

However, if you have a private Tomcat instance with a Java host like us, then you have the...