Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Konstantin Kolinko
2011/1/19 Michael Ludwig :
> Petr Hracek schrieb am 19.01.2011 um 12:37 (+0100):
>> The programs like 'jps' and 'jstack' are directorly in tomcat5
>> distribution or it has to be compiled on the system?
>
> They come with the JDK and are located in the JDK's bin/ directory.
>
>  C:\Programme\Java\jdk1.6.0_23\bin
>

More details are here:
http://wiki.apache.org/tomcat/HowTo#How_do_I_obtain_a_thread_dump_of_my_running_webapp_.3F

Best regards,
Konstantin Kolinko

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



Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Michael Ludwig
Petr Hracek schrieb am 19.01.2011 um 12:37 (+0100):
> The programs like 'jps' and 'jstack' are directorly in tomcat5
> distribution or it has to be compiled on the system?

They come with the JDK and are located in the JDK's bin/ directory.

  C:\Programme\Java\jdk1.6.0_23\bin

-- 
Michael Ludwig

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



Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Petr Hracek
Super thank you.
The programs like 'jps' and 'jstack' are directorly in tomcat5
distribution or it has to be compiled on the system?

2011/1/19 Ronald Klop :
> Su to the user running tomcat.
> Run 'jps'. Find the pid of the process running 'Bootstrap'.
> Run 'jstack '. 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 :
>>
>>  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 :
>> > 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
>>
>>
>>
>>
>>
>
>



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



Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Ronald Klop

Su to the user running tomcat.
Run 'jps'. Find the pid of the process running 'Bootstrap'.
Run 'jstack '. 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 :


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


 








Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Petr Hracek
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 :
> 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



Re: servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Mark Thomas
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



servlets under tomcat5 consume huge CPU usage

2011-01-19 Thread Petr Hracek
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?

Thank you in advance
-- 
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