Check thread count ...
 
Notifications
Clear all

Check thread count per process in linux

2 Posts
1 Users
0 Likes
1,069 Views
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 5 years ago
Posts: 65
Topic starter  

How can we check thread count per process in linux ?


   
Quote
Topic Tags
amrit_3327
(@amrit_3327)
Trusted Member
Joined: 5 years ago
Posts: 65
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: