Operating System - HP-UX
1826499 Members
1644 Online
109692 Solutions
New Discussion

how to show threads using ps ?

 
Unix Team_6
Advisor

how to show threads using ps ?

Hi everyone,

On linux ps has an option to show threads belonging to a process (eg java). but on hpux I can find no equivalent option (or none that works - even using UNIX95). glance does it - using the Z option, but we would really like to be able to do it with ps or some shareware version of ps so we can script it. anyone know how to do it ?

Thanks.
2 REPLIES 2
Yashwant
Valued Contributor

Re: how to show threads using ps ?

try with

ps -ef |grep process_name
Dennis Handly
Acclaimed Contributor

Re: how to show threads using ps ?

ps(1) only shows processes, not threads.
As you mentioned, you can use glance.
You can use wdb to look at threads. On 11.31, pstack(1) will do threads.

Anything you were specifically looking for? If looking for java performance, there's HPjmeter:
http://www.hp.com/go/java