Created
July 21, 2020 08:59
-
-
Save first087/f8d7a8e93336514aa8ab42afd96505b5 to your computer and use it in GitHub Desktop.
Java check thread by pid using jstack
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "Check process $1" | |
while true | |
do | |
"$JAVA_HOME/bin/jstack" -l $1 | grep pool | |
sleep 1 | |
echo | |
done | |
# Command: sh check-thread.sh {pid} | |
# Example: sh check-thread.sh 12345 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment