Notifications
Clear all
Community Forum
2
Posts
1
Users
0
Likes
1,069
Views
Topic starter
13/07/2020 9:55 pm
How can we check thread count per process in linux ?
Topic starter
13/07/2020 9:59 pm
Hello Friends,
There are multiple way one can do the thread count analysis per process in Linux.
1.) One can use the PID -
cat /proc/$(pgrep process)/status | grep -i Threads
For example in case of apche it will be
cat /proc/$(pgrep apache)/status | grep -i Threads
10
2.) Using ps command
ps -eL -q PID | wc -l