Hi guys,

Version: JSDK1.4.0, Apache1.3.24, Tomcat4.0.3

I was running on the following case

Case 1
tomcat4.0.3, apache1.3.24 on single win2000
system hang after one hour (Apache and Tomcat add up 100% CPU) (Restart
either Apache or Tomcat will work)

Case 2
Apache1.3.24 on first win2000 machine, Tomcat4.0.3 on second machine.
didn't hang after 48 hours. (Not have enough time to wait until it hang,
Should test one more time)

Case 3
Apache1.3.24 on first win2000 machine, First Tomcat4.0.3 on second machine,
Second Tomcat4.0.3 on third machine.(Load Balancing on Tomcat)
Apache hang after 12 hours (CPU on Apache go 100%) (Both Tomcat is around
20% CPU) (Only need to restart Apache)

Hope someone has more idea what's going on.

Thanks


----- Original Message -----
From: "Rossen Raykov" <[EMAIL PROTECTED]>
To: "'Tomcat Users List'" <[EMAIL PROTECTED]>
Sent: Friday, May 24, 2002 9:36 AM
Subject: RE: Apcahe's CPU goes to 100%


> Hi there,
>
> I'm having very similar problem on Solaris 8 JDK 1.3.1_01and Tomcat 4.0.3.
> It was even worst with JDK 1.3.1_03-b03 since java was crashing with bug
> report info.
> I spend sometime to investigate the problem and I discovered the
following:
>
> 1. apaches CPU usage grows as it is possible;
> 2. tomcat CPU usage increases also;
> 3. there is not any communication between apache and the web browser
> requested the page (maybe it did timeout?!);
> 4. there is not any error reported neither in tomcat nor in apaches error
> logs;
> 5. mod status is reporting the hanging process like:
> Srv PID   Acc        M  CPU  SS    Req Conn Child Slot   Host
> VHost                  Request
> 7-0 29328 0/399/1401 W  3.45 53090 0   0.0   4.71 13.22
> 205.188.195.184 myhost POST /myapp HTTP/1.0
>
> 6. the request is logged as 200 in apache access log (this I'm not 100%
sure
> and is still under investigation. I'll know it for sure next time when
this
> problem happened again.);
> 7. there is a constant communication between apache and tomcat!
> netstat report:
> java      19402 tomcat   25u  IPv4 0x300013e9088 0x12b427de    TCP
> myhost:25181->myhost:36568 (ESTABLISHED)
> java      19402 tomcat   28u  IPv4 0x3000141d0e8 0x1325c0c2    TCP
> myhost:25181->myhost:36686 (ESTABLISHED)
> java      19402 tomcat   29u  IPv4 0x3000041abd8 0x10683a68    TCP
> myhost:25181->myhost:36574 (ESTABLISHED)
>
> I tryed to trace this data exchange with tcpdump and ngrep without
> any success (yes, loopback can not be reached under Solaris, but I didn't
> succeed to trace the regular interface too which is driving me crazy!)
> The communication can be traced to some extend using truss.
> Below is an truss trace:
>
>  0.0703 recv(26, 0xFFBEE4A0, 4, 0) = 4
>      0xFFBEE4A0: " A B\003"
>  0.0710 recv(26, 0x0025D888, 3, 0) = 3
>      0x0025D888: "061FFA"
>  0.0715 send(26, 0x0025F890, 4, 0) = 4
>      0x0025F890: "12 4\0\0"
>  0.0720 recv(26, 0xFFBEE4A0, 4, 0) = 4
>      0xFFBEE4A0: " A B\003"
>  0.0723 recv(26, 0x0025D888, 3, 0) = 3
>      0x0025D888: "061FFA"
>  0.0727 send(26, 0x0025F890, 4, 0) = 4
>      0x0025F890: "12 4\0\0"
>
> The above is in infinite loop.
>
> 8. killing the bad http process is helping:
>
> The result after kill:
> java.lang.NullPointerException - in the application followed by:
>
> Ajp13Processor[25181][17] process: invoke
> java.io.IOException: Broken pipe
>         at java.net.SocketOutputStream.socketWrite(Native Method)
>         at java.net.SocketOutputStream.write(SocketOutputStream.java:83)
>         at org.apache.ajp.Ajp13.send(Ajp13.java:525)
>         at org.apache.ajp.RequestHandler.finish(RequestHandler.java:496)
>         at org.apache.ajp.Ajp13.finish(Ajp13.java:395)
>         at
>
org.apache.ajp.tomcat4.Ajp13Response.finishResponse(Ajp13Response.java:192)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.process(Ajp13Processor.java:435)
>         at
> org.apache.ajp.tomcat4.Ajp13Processor.run(Ajp13Processor.java:495)
>         at java.lang.Thread.run(Thread.java:484)
>
> I'm still not sure if this is not caused by a bug in the application
running
> but even if it is, mod_jk have to stop it's work and to signal JConnector
> that the web browser is gone (if it is possible off course).
> I believe if all we share more details about this error it will be fixed.
>
> Regards,
> Rossen
>
>
> > -----Original Message-----
> > From: Costas Stergiou [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, May 24, 2002 2:56 AM
> > To: Tomcat Users List
> > Subject: Re: Apcahe's CPU goes to 100%
> >
> >
> > Many of use have posted this problem here but I see that nobody
> > can come up with an answer...
> >
> > ----- Original Message -----
> > From: "Cammy Ng" <[EMAIL PROTECTED]>
> > To: "Tomcat Users List" <[EMAIL PROTECTED]>
> > Sent: Thursday, May 23, 2002 9:39 AM
> > Subject: Re: Apcahe's CPU goes to 100%
> >
> >
> > > Hi,
> > >
> > > I have this problem too, but no one seems to answer this problem, I
> > believe
> > > it is the mod_jk connector problem. Hope someone will find
> > the solution
> > for
> > > this.
> > >
> > > Thanks
> > > Cammy
> > > ----- Original Message -----
> > > From: "Rajesh Mishra" <[EMAIL PROTECTED]>
> > > To: <[EMAIL PROTECTED]>
> > > Sent: Wednesday, May 22, 2002 9:36 PM
> > > Subject: Apcahe's CPU goes to 100%
> > >
> > >
> > > > I'm using Apache1.3.12 and Tomcat3.2 for my
> > application.After stress
> > > testing
> > > > for 4 hours , CPU utilization of Apache.exe process goes
> > to 100%. As a
> > > > result when I try to access the website , I'm getting
> > timeouts. But I
> > > could
> > > > still access the website with tomcat port.
> > > >
> > > > Has anyone experienced this problem .I'm using mod_jk for
> > this purpose
> > > >
> > > > Regards
> > > > Rajesh
> > > >
> > > > --
> > > > To unsubscribe, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > > For additional commands, e-mail:
> > > <mailto:[EMAIL PROTECTED]>
> > > >
> > >
> > >
> > > --
> > > To unsubscribe, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > > For additional commands, e-mail:
> > <mailto:[EMAIL PROTECTED]>
> > >
> >
> >
> > --
> > To unsubscribe, e-mail:
> <mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
> <mailto:[EMAIL PROTECTED]>
>
> --
> To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
> For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>


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

Reply via email to