Sungju's Slow Life

Personal journal

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.

You also can check it by run the following command.

$ ps -eLf | wc -l

Leave a Reply

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

You are commenting using your 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.

About Me

A software engineer who loves any technologies that makes life easier. That’s why I love Linux and Mac at the same time.


%d bloggers like this: