top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

What is Java Thread Dump. How can we get Java Thread dump of a Program?

0 votes
540 views
What is Java Thread Dump. How can we get Java Thread dump of a Program?
posted Sep 22, 2017 by Pooja Singh

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

Thread dump is list of all the threads active in the JVM, thread dumps are very helpful in analyzing bottlenecks in the application and analyzing deadlock situations. There are many ways using which we can generate Thread dump – Using Profiler, Kill -3 command, jstack tool etc. I prefer jstack tool to generate thread dump of a program because it’s easy to use and comes with JDK installation. Since it’s a terminal based tool, we can create script to generate thread dump at regular intervals to analyze it later on.

answer Sep 25, 2017 by Neeraj Kumar
...