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
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