BibleGateway.com Verse Of The Day


“fixing our eyes on Jesus, the pioneer and perfecter of faith. For the joy set before him he endured the cross, scorning its shame, and sat down at the right hand of the throne of God.” (Hebrews 12:2)  listen to chapter  (Read by Max McLean. Provided by The Listener's Audio Bible.)

Powered by BibleGateway.com

Thursday, June 14, 2007

Getting Thread Dump Of Running Java Process

Of course you can kill -3 a process to get the thread dump, but for Java apps you can also get thread dumps of running processes using the JDK 5 tools jps and jstack. For example, on a server where I am running Tomcat 5.5, typing jps gets a list of all Java processes running:
-bash-3.00$ jps
25515 Bootstrap
26912 Jps
Then using that process id, run jstack:

jstack 25515

No comments: