Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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

share|improve this question
up vote 4 down vote accepted
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>
share|improve this answer

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
share|improve this answer

You must log in to answer this question.