How do I monitor or view the thread count of a certain process on AIX?

3

How do I monitor or view the thread count of a certain process on AIX?

someguy

Posted 2009-10-01T06:48:22.390

Reputation:

Answers

5

ps -o thcount -p <process id>

That would give you only the thread count.

Play with other field specifiers for the "-o" option (see 'man ps') for other info. For instance

ps -o pid,comm,user,thcount -p <process id>

Snark

Posted 2009-10-01T06:48:22.390

Reputation: 30 147

0

Another option is to use this to see all the processes and their threads for a single user. Replace USER_ID with the user's ID. Don't replace THREAD with anything, use that literal string:

ps -flu USER_ID -o THREAD -m

Joe

Posted 2009-10-01T06:48:22.390

Reputation: 1