Created
September 23, 2014 16:50
-
-
Save bohrqiu/40fdc0734f171eb5486e to your computer and use it in GitHub Desktop.
查看java进程启动线程数
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
for pid in `ps -ef |grep java| grep -v 'grep'| awk '{print $2}'` | |
do | |
cat /proc/$pid/status |grep Threads | awk '{print $2}' | |
done |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment