Friday, October 19, 2012

Java Obtain Thread Dump

In Java, a thread dump can be useful in giving you some clues when an application is hanging or consuming a lot of CPU resources (e.g. infinite loop).

Obtaining one is actually quite easy, via the "jstack" utility shipped with the JDK.

Just login to the server and issue the command "jstack <pid>".

No comments:

Post a Comment