Skip to content

5.Java Thread Dump Analysis

Rajendra Prasad Reddy Penumalli edited this page Aug 28, 2019 · 1 revision

Java Thread Dump Analysis

To debug java application performance issues we need to perform thread dump analysis

Possible Thread Related Issues

  • Thread Contention
  • DeadLock

Collecting Thread Dump Using jstack

Obtain java process id
$ ps - ef | grep java
user      2477          1    0 Dec23 ?         00:10:45 ...
user    25780 25361   0 15:02 pts/3    00:00:02 ./jstatd -J -Djava.security.policy=jstatd.all.policy -p 2999
user    26335 25361   0 15:49 pts/3    00:00:00 grep java
 
$ jstack -f <pid>

Sample: $ jstack -f 5824

Understanding Thread Dumps

Clone this wiki locally