Su to the user running tomcat.
Run 'jps'. Find the pid of the process running 'Bootstrap'.
Run 'jstack <pid>'. This gives you the thread dump.

The id's of the threads (in hex) correspond to the pid's (in decimal) of the 
threads in ps -H or top with threads on.

You can also find the pid with ps like you are likely used to.

Ronald.


Op woensdag, 19 januari 2011 11:05 schreef Petr Hracek <phrac...@gmail.com>:

Dear users,

I do not understand correctly.
I am linux administrator but the command like 'thread dump' is not existing.
Do you have any example?

Thank you in advance

Petr

2011/1/19 Mark Thomas <ma...@apache.org>:
> On 19/01/2011 08:29, Petr Hracek wrote:
>> Dear tomcat users,
>>
>> I would like to ask you on the some thing regarding servlets running
>> under tomcat 5 linux OS.
>> How could I detect if servlet is running or not?
>> Output of command ps -ef | grep java does not help me enought. I could
>> not catch what java process is used by servlets
>> Are there any special setting in tomcat5 which could show me more 
information?
>
> Use a thread dump. You can match thread IDs with ps output if you need to.
>
> Mark
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
>
>



--
Best Regards / S pozdravem
Petr Hracek

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org





Reply via email to