Check thread count ...
 
Notifications
Clear all

Check thread count per process in linux  

  RSS

amrit_3327
(@amrit_3327)
Trusted Member
Joined: 11 months ago
Posts: 57
13/07/2020 10:55 pm  

How can we check thread count per process in linux ?


Quote
Topic Tags
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 11 months ago
Posts: 57
13/07/2020 10: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  

ReplyQuote
Share: