Check thread count ...
 
Notifications
Clear all

Check thread count per process in linux  


amrit_3327
(@amrit_3327)
Trusted Member
Joined: 1 year ago
Posts: 61
Topic starter  

How can we check thread count per process in linux ?


Quote
Topic Tags
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 1 year ago
Posts: 61
Topic starter  

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: