...
Code Block | ||
---|---|---|
| ||
# First find process id by using ps command, for example
ps -ef | grep java
# Locate JAVA_HOME and cd to execute jstack
cd $JAVA_HOME/bin
# Take 5 thread dumps each 10 seconds apart. See below, where # will be 1, 2, 3, 4, 5
./jstack -l <pid> > /var/tmp/threaddump_#.txt
# if jstack does not work, use kill -3 <pid> to get thread dumps. |
Related articles
Filter by label (Content by label) | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
...