Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

How to fund thread information on unix machine

11 views
Skip to first unread message

kamit28

unread,
Jun 9, 2009, 7:52:57 AM6/9/09
to
Hi all,

Is there a way, any command etc., that can be used to see a thread
status just like we get process status using ps, top and prstat
commands?


Actually, my java program spawns threads for some data load process.
Some times it takes too much time and in these cases I need to find
the status of the threads, like how much memory it is consuming etc.
And if possible kill the thread. Can I do this?


My OS is Solaris 9.


Thanks & Regards,
Amit


Andreas Marschke

unread,
Feb 20, 2010, 4:12:42 PM2/20/10
to
kamit28 wrote:


AFAIK threads that are forked off are processes themselfs then and
have PIDS etc. Thus are shown aswell in ps maybe try this ps axf -o
pid,ni,pcpu,%mem,wchan,cmd and if you can see anything in there of
interest for you.

Cheers,

Andreas Marschke.

NOTE: ONLY TESTED ON LINUX

0 new messages