linux get current thread count and system threads limit

get current thread count

grep -s '^Threads' /proc/[0-9]*/status | awk '{ sum += $2; } END { print sum; }'

get the system thread limit

cat /proc/sys/kernel/threads-max

posted @ 2014-05-27 15:02  Daniel King  阅读(314)  评论(0编辑  收藏  举报