Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David Delbecq
That probably means that 4 CPUs/Cores are busy 100% time working for
tomcat. This mean the issue appears in several Threads, leading to think
it's webapps related issues :) Garbage collector issue wouldn't use 4 or
more Threads.

En l'instant précis du 15/06/07 09:17, 吴熊敏 s'exprimait en ces termes:
 400%? what do you mean??


 On Thu, 14 Jun 2007 21:14:45 +0200
 Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

   
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)

 Filip
 

 
 吴熊敏 [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread Richard Kaye
I think I have one if you'd like it...
Only problem is, it doesn't work :(
AFAIK 400% of zero is still zero :D

R

On Thu, 2007-06-14 at 21:14 +0200, Filip Hanik - Dev Lists wrote:
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)
 
 Filip
 
 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]
 


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread Sumit Gaikaiwari


Yeah, that's right. The application server is having 4 CPU's and top gives 
collective output for all the CPU's. Hence 400%... :)

Regards,
Sumit Gaikaiwari

-Original Message-
From: David Delbecq [mailto:[EMAIL PROTECTED] 
Sent: Friday, June 15, 2007 1:01 PM
To: Tomcat Users List
Subject: Re: Tomcat Server CPU utilization goes upto 400%

That probably means that 4 CPUs/Cores are busy 100% time working for
tomcat. This mean the issue appears in several Threads, leading to think
it's webapps related issues :) Garbage collector issue wouldn't use 4 or
more Threads.

En l'instant précis du 15/06/07 09:17, 吴熊敏 s'exprimait en ces termes:
 400%? what do you mean??


 On Thu, 14 Jun 2007 21:14:45 +0200
 Filip Hanik - Dev Lists [EMAIL PROTECTED] wrote:

   
 man, I need to get a CPU like that, that can actually work 4 times its 
 max capacity :)

 Filip
 

 
 吴熊敏 [EMAIL PROTECTED]


 -
 To start a new topic, e-mail: users@tomcat.apache.org
 To unsubscribe, e-mail: [EMAIL PROTECTED]
 For additional commands, e-mail: [EMAIL PROTECTED]

   


-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


-**Nihilent***

 *** All information contained in this communication is confidential, 
proprietary, privileged and is intended for the addressees only. If you have 
received this E-mail in error please notify mail administrator by telephone on 
+91-20-39846100 or E-mail the sender by replying to this message, and then 
delete this E-mail and other copies of it from your computer system. Any 
unauthorized dissemination, publication, transfer or use of the contents of 
this communication, with or without modifications is punishable under the 
relevant law. 

Nihilent has scanned this mail with current virus checking technologies. 
However, Nihilent makes no representations or warranties to the effect that 
this communication is virus-free. 

Nihilent reserves the right to monitor all E-mail communications through  its 
Corporate Network. *** 

*-

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server CPU utilization goes upto 400%

2007-06-15 Thread David kerber
It's an acronym for As Far As I Know.

D

吴熊敏 wrote:
 “AFAIK” What it mean?

   
 AFAIK 400% of zero is still zero :D
 



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Filip Hanik - Dev Lists
man, I need to get a CPU like that, that can actually work 4 times its 
max capacity :)


Filip

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



RE: Tomcat Server CPU utilization goes upto 400%

2007-06-14 Thread Jayson Enriquez
rofl

-Original Message-
From: Filip Hanik - Dev Lists [mailto:[EMAIL PROTECTED] 
Sent: Thursday, June 14, 2007 12:15 PM
To: Tomcat Users List
Subject: Re: Tomcat Server CPU utilization goes upto 400%

man, I need to get a CPU like that, that can actually work 4 times its 
max capacity :)

Filip

-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Tim Funk
This is an old version so you might be see'ing gc issues. (but that is a 
wild guess).


There isn't enough detail to debug, but when the situation arises - do 
the following - get thread dumps a look for odd stuff

1) kill -3 tomcat when tomcat is running OK - so you have a base line
2) Then when things are going bad kill -3 to get a stack trace of all 
the threads and look for what is running and out of the ordinary - 
typically you might need 2 or 3 dumps for a better comparision
3) When things get really slow - do a final stack trace (via kill -3) 
before you restart tomcat. We luck this trace will confirm any theories 
you saw in step 2.


Good luck.

-Tim

Sumit Gaikaiwari wrote:

Hello,

 


We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There two
applications in webapps. We are facing an issue from around 3-4 months
where the CPU utilization by java process (tomcat) goes quite high:
around 400% in every 4-5 days. The application gets very slow and tomcat
needs to be restarted for normal operation. The output of top command is
as below-

 


[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# top

Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie

Cpu(s): 25.1% us,  0.1% sy,  0.0% ni, 74.5% id,  0.2% wa,  0.0% hi,
0.0% si

Mem:   4086472k total,  2487676k used,  1598796k free,   217464k buffers

Swap:  6094824k total,0k used,  6094824k free,  1811576k cached

 


  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

 1038 root  16   0  545m 244m  61m S  101  6.1   1156:22 java

1 root  16   0  2556  552  472 S0  0.0   0:01.17 init

2 root  RT   0 000 S0  0.0   0:00.31 migration/0

 

 


Here is the status of active threads-

Thread Status-

 


[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# ps -Le -o
pid,user,s,lwp,pcpu,args | awk '$3 != S { print }'

 1038 root R  1093 19.8 /usr/local/j2sdk1.4.2_12/bin/java -Xmx256m
-Xms128m -Djava.awt.headless=true -Dsun.awt.font.advancecache=off
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.25/common/endorsed
-classpath
/usr/local/j2sdk1.4.2_12/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.25/
bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.25/bin/commons-logging-a
pi.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.25
-Dcatalina.home=/usr/local/jakarta-tomcat-5.0.25
-Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.25/temp
org.apache.catalina.startup.Bootstrap start

20544 root R 20544  0.0 ps -Le -o pid,user,s,lwp,pcpu,args

 


This was status at certain instant of time. After 5 hours from this
instant, the utilization reached to 400% and also there were many
threads which were using almost 150% of CPU time.

 


The system configuration is -

 


[EMAIL PROTECTED] ~]# wget --quiet -O - --user admin --password nimda
http://localhost:8080/manager/serverinfo

OK - Server info

Tomcat Version: Apache Tomcat/5.0.25

OS Name: Linux

OS Version: 2.6.9-42.0.2.ELsmp

OS Architecture: i386

JVM Version: 1.4.2_12-b03

JVM Vendor: Sun Microsystems Inc.

 


Please can any one tell me possible cause for this issue? This issue has
become very critical and needs to be fixed out soon.



-
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Andre Prasetya

i think its more to application problem instead of tomcat problem. Is there
any application hosted inside tomcat that get infinite loop or use a kind of
loop checking something that utilize the thread fully ? try solving that
with the application developer

On 6/13/07, Sumit Gaikaiwari [EMAIL PROTECTED] wrote:



Hello,



We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There two
applications in webapps. We are facing an issue from around 3-4 months
where the CPU utilization by java process (tomcat) goes quite high:
around 400% in every 4-5 days. The application gets very slow and tomcat
needs to be restarted for normal operation. The output of top command is
as below-



[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# top

Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie

Cpu(s): 25.1% us,  0.1% sy,  0.0% ni, 74.5% id,  0.2% wa,  0.0% hi,
0.0% si

Mem:   4086472k total,  2487676k used,  1598796k free,   217464k buffers

Swap:  6094824k total,0k used,  6094824k free,  1811576k cached



  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

1038 root  16   0  545m 244m  61m S  101  6.1   1156:22 java

1 root  16   0  2556  552  472 S0  0.0   0:01.17 init

2 root  RT   0 000 S0  0.0   0:00.31 migration/0





Here is the status of active threads-

Thread Status-



[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# ps -Le -o
pid,user,s,lwp,pcpu,args | awk '$3 != S { print }'

1038 root R  1093 19.8 /usr/local/j2sdk1.4.2_12/bin/java -Xmx256m
-Xms128m -Djava.awt.headless=true -Dsun.awt.font.advancecache=off
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.25/common/endorsed
-classpath
/usr/local/j2sdk1.4.2_12/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.25/
bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.25/bin/commons-logging-a
pi.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.25
-Dcatalina.home=/usr/local/jakarta-tomcat-5.0.25
-Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.25/temp
org.apache.catalina.startup.Bootstrap start

20544 root R 20544  0.0 ps -Le -o pid,user,s,lwp,pcpu,args



This was status at certain instant of time. After 5 hours from this
instant, the utilization reached to 400% and also there were many
threads which were using almost 150% of CPU time.



The system configuration is -



[EMAIL PROTECTED] ~]# wget --quiet -O - --user admin --password nimda
http://localhost:8080/manager/serverinfo

OK - Server info

Tomcat Version: Apache Tomcat/5.0.25

OS Name: Linux

OS Version: 2.6.9-42.0.2.ELsmp

OS Architecture: i386

JVM Version: 1.4.2_12-b03

JVM Vendor: Sun Microsystems Inc.



Please can any one tell me possible cause for this issue? This issue has
become very critical and needs to be fixed out soon.



Regards,

Sumit Gaikaiwari



-**Nihilent***

 *** All information contained in this communication is confidential,
proprietary, privileged and is intended for the addressees only. If you have
received this E-mail in error please notify mail administrator by telephone
on +91-20-39846100 or E-mail the sender by replying to this message, and
then delete this E-mail and other copies of it from your computer system.
Any unauthorized dissemination, publication, transfer or use of the contents
of this communication, with or without modifications is punishable under the
relevant law.

Nihilent has scanned this mail with current virus checking technologies.
However, Nihilent makes no representations or warranties to the effect that
this communication is virus-free.

Nihilent reserves the right to monitor all E-mail communications
through  its Corporate Network. *** 

*-





--
-Andre-

People see things the way they are and say why ? I see things that never
were and say Why not ?


RE: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread Sumit Gaikaiwari



There is an application deployed that refreshes after every 30 seconds.
After every 30 seconds, it requeries database and fetches the data. This
was a design requirement for this application. Generally large numbers
of sessions of this application are running (450-500). 

Regards,
Sumit Gaikaiwari


-Original Message-
From: Andre Prasetya [mailto:[EMAIL PROTECTED] 
Sent: Wednesday, June 13, 2007 4:22 PM
To: Tomcat Users List
Subject: Re: Tomcat Server CPU utilization goes upto 400%

i think its more to application problem instead of tomcat problem. Is
there
any application hosted inside tomcat that get infinite loop or use a
kind of
loop checking something that utilize the thread fully ? try solving that
with the application developer

On 6/13/07, Sumit Gaikaiwari [EMAIL PROTECTED] wrote:


 Hello,



 We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There
two
 applications in webapps. We are facing an issue from around 3-4 months
 where the CPU utilization by java process (tomcat) goes quite high:
 around 400% in every 4-5 days. The application gets very slow and
tomcat
 needs to be restarted for normal operation. The output of top command
is
 as below-



 [EMAIL PROTECTED] jakarta-tomcat-5.0.25]# top

 Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie

 Cpu(s): 25.1% us,  0.1% sy,  0.0% ni, 74.5% id,  0.2% wa,  0.0% hi,
 0.0% si

 Mem:   4086472k total,  2487676k used,  1598796k free,   217464k
buffers

 Swap:  6094824k total,0k used,  6094824k free,  1811576k
cached



   PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

 1038 root  16   0  545m 244m  61m S  101  6.1   1156:22 java

 1 root  16   0  2556  552  472 S0  0.0   0:01.17 init

 2 root  RT   0 000 S0  0.0   0:00.31
migration/0





 Here is the status of active threads-

 Thread Status-



 [EMAIL PROTECTED] jakarta-tomcat-5.0.25]# ps -Le -o
 pid,user,s,lwp,pcpu,args | awk '$3 != S { print }'

 1038 root R  1093 19.8 /usr/local/j2sdk1.4.2_12/bin/java -Xmx256m
 -Xms128m -Djava.awt.headless=true -Dsun.awt.font.advancecache=off
 -Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.25/common/endorsed
 -classpath

/usr/local/j2sdk1.4.2_12/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.25/

bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.25/bin/commons-logging-a
 pi.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.25
 -Dcatalina.home=/usr/local/jakarta-tomcat-5.0.25
 -Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.25/temp
 org.apache.catalina.startup.Bootstrap start

 20544 root R 20544  0.0 ps -Le -o pid,user,s,lwp,pcpu,args



 This was status at certain instant of time. After 5 hours from this
 instant, the utilization reached to 400% and also there were many
 threads which were using almost 150% of CPU time.



 The system configuration is -



 [EMAIL PROTECTED] ~]# wget --quiet -O - --user admin --password nimda
 http://localhost:8080/manager/serverinfo

 OK - Server info

 Tomcat Version: Apache Tomcat/5.0.25

 OS Name: Linux

 OS Version: 2.6.9-42.0.2.ELsmp

 OS Architecture: i386

 JVM Version: 1.4.2_12-b03

 JVM Vendor: Sun Microsystems Inc.



 Please can any one tell me possible cause for this issue? This issue
has
 become very critical and needs to be fixed out soon.



 Regards,

 Sumit Gaikaiwari



 -**Nihilent***

  *** All information contained in this communication is confidential,
 proprietary, privileged and is intended for the addressees only. If
you have
 received this E-mail in error please notify mail administrator by
telephone
 on +91-20-39846100 or E-mail the sender by replying to this message,
and
 then delete this E-mail and other copies of it from your computer
system.
 Any unauthorized dissemination, publication, transfer or use of the
contents
 of this communication, with or without modifications is punishable
under the
 relevant law.

 Nihilent has scanned this mail with current virus checking
technologies.
 However, Nihilent makes no representations or warranties to the effect
that
 this communication is virus-free.

 Nihilent reserves the right to monitor all E-mail communications
 through  its Corporate Network. *** 



*-




-- 
-Andre-

People see things the way they are and say why ? I see things that
never
were and say Why not ?

-**Nihilent***

 *** All information contained in this communication is confidential,
proprietary, privileged and is intended for the addressees only. If you
have received this E-mail in error please notify mail administrator by
telephone on +91-20-39846100 or E-mail the sender by replying to this
message, and then delete this E-mail and other copies of it from your
computer system. Any unauthorized dissemination, publication, transfer
or use of the contents of this communication, with or without
modifications is punishable under

Re: Tomcat Server CPU utilization goes upto 400%

2007-06-13 Thread PTS

Sumit,

Look at the design of the app. Is each session doing a query every 30 
seconds? Also is the database on the same server?


I had an app that was originally designed to be for a few users that each 
session hit the database. Due to the amount of processing of the data it had 
a snowball effect that after more than a few users connected the system 
began to fall behind and the system came to a crawl. Since my query was the 
same for all users, I was able to spawn a thread to do a query every few 
minutes and cache the results, then each session grabbed a copy of the 
cached data from memory.


I would also have to agree that it appears to be an application issue, 
especially after experiencing it myself. Or more accurately doing it to 
myself.


Doug


- Original Message - 
From: Sumit Gaikaiwari [EMAIL PROTECTED]

To: Tomcat Users List users@tomcat.apache.org
Sent: Wednesday, June 13, 2007 11:17 PM
Subject: RE: Tomcat Server CPU utilization goes upto 400%





There is an application deployed that refreshes after every 30 seconds.
After every 30 seconds, it requeries database and fetches the data. This
was a design requirement for this application. Generally large numbers
of sessions of this application are running (450-500).

Regards,
Sumit Gaikaiwari


-Original Message-
From: Andre Prasetya [mailto:[EMAIL PROTECTED]
Sent: Wednesday, June 13, 2007 4:22 PM
To: Tomcat Users List
Subject: Re: Tomcat Server CPU utilization goes upto 400%

i think its more to application problem instead of tomcat problem. Is
there
any application hosted inside tomcat that get infinite loop or use a
kind of
loop checking something that utilize the thread fully ? try solving that
with the application developer

On 6/13/07, Sumit Gaikaiwari [EMAIL PROTECTED] wrote:



Hello,



We are using tomcat 5.0.25 on Red Hat Enterprise Linux server. There

two

applications in webapps. We are facing an issue from around 3-4 months
where the CPU utilization by java process (tomcat) goes quite high:
around 400% in every 4-5 days. The application gets very slow and

tomcat

needs to be restarted for normal operation. The output of top command

is

as below-



[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# top

Tasks:  78 total,   1 running,  77 sleeping,   0 stopped,   0 zombie

Cpu(s): 25.1% us,  0.1% sy,  0.0% ni, 74.5% id,  0.2% wa,  0.0% hi,
0.0% si

Mem:   4086472k total,  2487676k used,  1598796k free,   217464k

buffers


Swap:  6094824k total,0k used,  6094824k free,  1811576k

cached




  PID USER  PR  NI  VIRT  RES  SHR S %CPU %MEMTIME+  COMMAND

1038 root  16   0  545m 244m  61m S  101  6.1   1156:22 java

1 root  16   0  2556  552  472 S0  0.0   0:01.17 init

2 root  RT   0 000 S0  0.0   0:00.31

migration/0






Here is the status of active threads-

Thread Status-



[EMAIL PROTECTED] jakarta-tomcat-5.0.25]# ps -Le -o
pid,user,s,lwp,pcpu,args | awk '$3 != S { print }'

1038 root R  1093 19.8 /usr/local/j2sdk1.4.2_12/bin/java -Xmx256m
-Xms128m -Djava.awt.headless=true -Dsun.awt.font.advancecache=off
-Djava.endorsed.dirs=/usr/local/jakarta-tomcat-5.0.25/common/endorsed
-classpath


/usr/local/j2sdk1.4.2_12/lib/tools.jar:/usr/local/jakarta-tomcat-5.0.25/



bin/bootstrap.jar:/usr/local/jakarta-tomcat-5.0.25/bin/commons-logging-a

pi.jar -Dcatalina.base=/usr/local/jakarta-tomcat-5.0.25
-Dcatalina.home=/usr/local/jakarta-tomcat-5.0.25
-Djava.io.tmpdir=/usr/local/jakarta-tomcat-5.0.25/temp
org.apache.catalina.startup.Bootstrap start

20544 root R 20544  0.0 ps -Le -o pid,user,s,lwp,pcpu,args



This was status at certain instant of time. After 5 hours from this
instant, the utilization reached to 400% and also there were many
threads which were using almost 150% of CPU time.



The system configuration is -



[EMAIL PROTECTED] ~]# wget --quiet -O - --user admin --password nimda
http://localhost:8080/manager/serverinfo

OK - Server info

Tomcat Version: Apache Tomcat/5.0.25

OS Name: Linux

OS Version: 2.6.9-42.0.2.ELsmp

OS Architecture: i386

JVM Version: 1.4.2_12-b03

JVM Vendor: Sun Microsystems Inc.



Please can any one tell me possible cause for this issue? This issue

has

become very critical and needs to be fixed out soon.



Regards,

Sumit Gaikaiwari



-**Nihilent***

 *** All information contained in this communication is confidential,
proprietary, privileged and is intended for the addressees only. If

you have

received this E-mail in error please notify mail administrator by

telephone

on +91-20-39846100 or E-mail the sender by replying to this message,

and

then delete this E-mail and other copies of it from your computer

system.

Any unauthorized dissemination, publication, transfer or use of the

contents

of this communication, with or without modifications is punishable

under the

relevant law.

Nihilent has scanned this mail with current virus checking

technologies.

However, Nihilent