Created
March 17, 2014 06:54
-
-
Save nielsvanderbeke/9594994 to your computer and use it in GitHub Desktop.
count threads all java processes
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
ps -eLF | awk '{ { print $1,$13,$14 } }' | grep java | grep -v grep| sort | uniq -c | |
==== ps ==== | |
-e Select all processes. Identical to | |
-F extra full format. See the -f option, which -F implies. | |
-L Show threads, possibly with LWP and NLWP columns | |
==== uniq ==== | |
-c, --count prefix lines by the number of occurrences |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment