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 %MEM    TIME+  COMMAND

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

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

    2 root      RT   0     0    0    0 S    0  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 ?"

Reply via email to