1.Download jdk1.6.0 (http://www.oracle.com/ technetwork/java/javase/ downloads/jdk6u35-downloads- 1836443.html)
2. After extracting the jdk , run the following command to take the dump
3. To take only thread dump
./bin/jstack -l PID ./bin/jstack -l PID > /tmp/thread_dump.txt
Following linux commands can be used for digging
awk '/State: B/ { print }' < /tmp/thread_dump.txt | sort | uniq -c
awk '/State: WAITING/ { getline; print }' < /tmp/thread_dump.txt | sort | uniq -c
No comments:
Post a Comment