Created
September 26, 2017 05:38
-
-
Save caoxudong/1ceb08140c8a6e9bd8df6d326b8225a4 to your computer and use it in GitHub Desktop.
查看系统中线程数最多的10个进程
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 | tail -n +2 | awk -F ' ' '{threads_count[$2]++;} END{for(pid in threads_count){print pid,threads_count[pid];}}' | sort -k2 -n -r | head |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment