Last active
December 29, 2015 10:09
-
-
Save hailinzeng/7655549 to your computer and use it in GitHub Desktop.
watch jvm process thread count
This file contains 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
#!/bin/bash | |
while true; do pstree | grep "|-java" | awk -F* '{print $1}' | sed -e 's/|-java---//g' | sed -e 's/ //g' | tr "\\n" ","; date +"%D %T"; sleep 10; done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment