Saturday, April 09, 2011

Thread Dump for Java Process

Thread dump is a essential part of debugging issues with running process apart from looking at the logs, thread dumps provide a “under the hood” view of your java process and its health.

kill -3 or kill -QUIT are usually used to take thread dumps in most UNIX environments, but there is catch for java process which was kicked off by a shell-script.

This blog post explains this in great detail and is a good read if you are stuck trying to take a thread dump on a java process started by a shell script

No comments: