I donot have infinite loops. i did little bit of testing last week. kill -s 24 (STOP) 
made the cpu to come down to 0%. It paused the application. Then i tried kill -s 3 the 
cpu went back to 100% but no dump. This tells me that tomcat is responding to signals, 
but still doesnt explain why it cant dump log on SIGQUIT.
I used glance again to see what system call it is on. I found that jvm is repeatedly 
trying sched_yield approx 1000's in a minute or so. 
Then played around with different signals. One of the signal made jvm to core dump. On 
analyzing the core dump with debugger found the following in thread stack
0. sched_yield
1. os_yield
2. jni_invoke_nonstatic_FP7JNIEnv_p9JavaValueP8_jobject.....
3. jni_callBooleanMethod__FP7JNIEnv_p8_jobjectP10_jmethodIDE
4. java_java_net_plainSocketImpl_socketAccept

Just before the cpu went 100%. I accessed my JSP page. Closed Internet explorer. After 
2 minitues I again opened IE and tried accessing that page. At this point the CPU went 
nuts.

Ravi


----- Original Message -----
From: "Shapira, Yoav" <[EMAIL PROTECTED]>
Date: Thu, 18 Sep 2003 14:49:26 -0400
To: "Tomcat Users List" <[EMAIL PROTECTED]>
Subject: RE: CPU usage 100%

> 
> Howdy,
> Look for infinite loops...
> 
> Yoav Shapira
> Millennium ChemInformatics
> 
> 
> >-----Original Message-----
> >From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED]
> >Sent: Thursday, September 18, 2003 2:47 PM
> >To: Tomcat Users List
> >Subject: RE: CPU usage 100%
> >
> >Hi,
> >  I was not using -server option. Now i changed it to -server option
> and
> >also increased heap size to 512m. Still i have 100%CPU problem. When
> this
> >problem occurs i can't access any page. I have to do a kill -9 on jvm
> and
> >then restart the server.
> >  What should i try next.
> >
> >Thanks in advance
> >
> >Ravi
> >----- Original Message -----
> >From: Jared Walker <[EMAIL PROTECTED]>
> >Date: 09 Sep 2003 14:10:13 -0500
> >To: Tomcat Users List <[EMAIL PROTECTED]>
> >Subject: RE: CPU usage 100%
> >
> >> Howdy,
> >>
> >> If it does it when there is no one accessing the server then I would
> >> think its the JVM not tomcat.  Check your JVM settings. If you're
> >> starting up with the -server option I've noticed that the garbage
> >> collection will show 100% cpu utilization even though the system
> >> responds fine.  This may be what you are experiencing.
> >>
> >> later,
> >> -Jared
> >>
> >> On Tue, 2003-09-09 at 12:50, Shapira, Yoav wrote:
> >> > Howdy,
> >> > The SIGQUIT works for me even when CPU usage is 100%, so it's
> strange
> >it
> >> > doesn't work for you. (I'm on solaris though).
> >> >
> >> > One important thing to check is your JSP page; make sure you have
> no
> >> > infinite loops or other such locks in the page.
> >> >
> >> > Yoav Shapira
> >> > Millennium ChemInformatics
> >> >
> >> >
> >> > >-----Original Message-----
> >> > >From: Ravi Puthiyattil [mailto:[EMAIL PROTECTED]
> >> > >Sent: Tuesday, September 09, 2003 1:36 PM
> >> > >To: [EMAIL PROTECTED]
> >> > >Subject: CPU usage 100%
> >> > >
> >> > >Hi all,
> >> > >  I am running Tomcat 4.1 on HPUX11.11, jdk1.4.1 running a small
> jsp
> >> > page.
> >> > >Tomcat hangs with 100% cpu after some time. I tried to do a kill
> >> > >-SIGQUIT on the process, but there is no trace dump. Trace dump
> works
> >> > >only when the cpu is not at 100% (or when tomcat is running
> >> > >normally). I tried using glance and checked all the threads, most
> of
> >> > >the threads are in wait state SYSTEM and 3 threads are in wait
> state
> >> > >SLEEP. These 3 threads are the ones that have high CPU time.
> >> > >  I notice this behaviour even when no body is accessing web page.
> So
> >> > >it looks like when it is idle for a while the CPU usage goes 100%.
> >> > >  I don't know how to debug next. I need some help in finding out
> why
> >> > >and where the CPU goes nuts. Is there anything i need to change in
> >> > >the config files ? Please help.
> >> > >
> >> > >Thanks in advance,
> >> > >
> >> > >Ravi
> >> > >
> >> > >--
> >> > >__________________________________________________________
> >> > >Sign-up for your own personalized E-mail at Mail.com
> >> > >http://www.mail.com/?sr=signup
> >> > >
> >> > >CareerBuilder.com has over 400,000 jobs. Be smarter about your job
> >> > search
> >> > >http://corp.mail.com/careers
> >> > >
> >> > >
> >> >
> >---------------------------------------------------------------------
> >> > >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > >For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> >
> >> >
> >> >
> >> >
> >> > This e-mail, including any attachments, is a confidential business
> >communication, and may contain information that is confidential,
> >proprietary and/or privileged.  This e-mail is intended only for the
> >individual(s) to whom it is addressed, and may not be saved, copied,
> >printed, disclosed or used by anyone else.  If you are not the(an)
> intended
> >recipient, please immediately delete this e-mail from your computer
> system
> >and notify the sender.  Thank you.
> >> >
> >> >
> >> >
> ---------------------------------------------------------------------
> >> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> > For additional commands, e-mail:
> [EMAIL PROTECTED]
> >> --
> >> Jared Walker <[EMAIL PROTECTED]>
> >> ClickFind
> >>
> >>
> >> ---------------------------------------------------------------------
> >> To unsubscribe, e-mail: [EMAIL PROTECTED]
> >> For additional commands, e-mail: [EMAIL PROTECTED]
> >>
> >
> >--
> >__________________________________________________________
> >Sign-up for your own personalized E-mail at Mail.com
> >http://www.mail.com/?sr=signup
> >
> >CareerBuilder.com has over 400,000 jobs. Be smarter about your job
> search
> >http://corp.mail.com/careers
> >
> >
> >---------------------------------------------------------------------
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> 
> 
> 
> 
> This e-mail, including any attachments, is a confidential business communication, 
> and may contain information that is confidential, proprietary and/or privileged.  
> This e-mail is intended only for the individual(s) to whom it is addressed, and may 
> not be saved, copied, printed, disclosed or used by anyone else.  If you are not 
> the(an) intended recipient, please immediately delete this e-mail from your computer 
> system and notify the sender.  Thank you.
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> 

-- 
__________________________________________________________
Sign-up for your own personalized E-mail at Mail.com
http://www.mail.com/?sr=signup

CareerBuilder.com has over 400,000 jobs. Be smarter about your job search
http://corp.mail.com/careers


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to