How many threads are in the system

If you want to check how many threads are in the system to compare it with the maximum allowed threads by the system (kernel.threads-max), you can use one of the below two methods.

$ cat /proc/loadavg
0.74 0.93 1.04 3/393 31977

4th column in the above output is related to the current threads number. In this case, there are 393 threads.

http://pagead2.googlesyndication.com/pagead/show_ads.js

You also can check it by run the following command.

$ ps -eLf | wc -l

Leave a Comment

Please log in using one of these methods to post your comment:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.