You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Brandon Cruz <bc...@norvax.com> on 2001/11/16 02:08:24 UTC

Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

I am using Tomcat 3.2.1 connected to Apache via mod_jk.  For some reason,
every once in a while, my java (Tomcat) process in linux goes up to 97% and
stays there until I try to stop tomcat.  Even though tomcat shuts down, that
process still stays all of the way up at 97% and can only be stopped by
executing the kill command.  Does anyone know a fix for this problem,
upgrade tomcat, upgrade linux version, upgrade jre, etc.?

I have seen many posts on this subject before, but never a definate answer.
I see that many people say check the code, so I am doing that for now.  The
only strange thing is that I can't figure out exactly what causes this to
happen, and it can't be duplicated on development machines running tomcat
stand alone on win2k.

Any help would REALLY be appreciated!!!


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

Posted by Mika Goeckel <mi...@stepstone.de>.
Hi Brandon,

you are sure that this is not an effect of the garbage collection?
In development you will not have that many objects created (due to lower
usage of the system) and therefore not that much gc activity.
Try to play around with the incremental garbage collection settings or to
look into your system with JProbe or comparable monitors.
Have you seen http://java.sun.com/docs/hotspot/gc/ ?

Cheers, Mika

----- Original Message -----
From: "Brandon Cruz" <bc...@norvax.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, November 16, 2001 2:08 AM
Subject: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


> I am using Tomcat 3.2.1 connected to Apache via mod_jk.  For some reason,
> every once in a while, my java (Tomcat) process in linux goes up to 97%
and
> stays there until I try to stop tomcat.  Even though tomcat shuts down,
that
> process still stays all of the way up at 97% and can only be stopped by
> executing the kill command.  Does anyone know a fix for this problem,
> upgrade tomcat, upgrade linux version, upgrade jre, etc.?
>
> I have seen many posts on this subject before, but never a definate
answer.
> I see that many people say check the code, so I am doing that for now.
The
> only strange thing is that I can't figure out exactly what causes this to
> happen, and it can't be duplicated on development machines running tomcat
> stand alone on win2k.
>
> Any help would REALLY be appreciated!!!
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

Posted by Jeff Kilbride <je...@kilbride.com>.
----- Original Message -----
From: "Brandon Cruz" <bc...@norvax.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Friday, November 16, 2001 7:01 AM
Subject: RE: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


> Thank you for the suggestions, so to upgrade to a newer version of tomcat
> 3.2.x, all I have to do is switch jar files in tomcat_home/lib?  Do you
> think that may help with the 97% processor problem?

That's what the Readme file that comes with the distribution says -- and it
worked for me. I remember 3.2.1 (and possibly 3.2.2) having a known runaway
processor problem, but I don't remember what caused it. Something to do with
mapping a servlet incorrectly could cause a runaway, I think. I believe it
was fixed by 3.2.3. As I said, I think 3.2.4 is going to be released very
soon, so you might wait for that distro.

> As far as garbage collection, this condition stays this way, even after 12
> hours.  Would that be an indication of garbage collection or an endless
loop
> somewhere?  If it is in our developers code, then I would expect this to
> reproduce on any machine, development on win2k, or production on
> linux-apache-tomcat.  Still can only find this on the linux-apache
machine.
>
> I will try the upgrade and reading up some information on garbage
> collection.  If anyone else has seen this condition and been able to fix
it,
> please let me know what you did!

I doubt that it's a garbage collection issue. Try upgrading TC first to see
if it resolves your problems.

> Thanks Again!
>
> Brandon

--jeff


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


RE: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

Posted by Brandon Cruz <bc...@norvax.com>.
Thank you for the suggestions, so to upgrade to a newer version of tomcat
3.2.x, all I have to do is switch jar files in tomcat_home/lib?  Do you
think that may help with the 97% processor problem?


As far as garbage collection, this condition stays this way, even after 12
hours.  Would that be an indication of garbage collection or an endless loop
somewhere?  If it is in our developers code, then I would expect this to
reproduce on any machine, development on win2k, or production on
linux-apache-tomcat.  Still can only find this on the linux-apache machine.

I will try the upgrade and reading up some information on garbage
collection.  If anyone else has seen this condition and been able to fix it,
please let me know what you did!

Thanks Again!

Brandon

-----Original Message-----
From: Jeff Kilbride [mailto:jeff@kilbride.com]
Sent: Thursday, November 15, 2001 8:01 PM
To: Tomcat Users List
Subject: Re: Common Problem with Tomcat/Apache (processer sticks at 97%
on linux)


At the very least, upgrade to the latest stable 3.2.x version. 3.2.1 is
quite old and had several security problems. I'm pretty sure they are about
to release 3.2.4, so that might be a good incentive. You don't have to
change any of your config files, just replace the jar files in your
TOMCAT_HOME/lib directory with the new ones.

Thanks,
--jeff

----- Original Message -----
From: "Brandon Cruz" <bc...@norvax.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, November 15, 2001 5:08 PM
Subject: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


> I am using Tomcat 3.2.1 connected to Apache via mod_jk.  For some reason,
> every once in a while, my java (Tomcat) process in linux goes up to 97%
and
> stays there until I try to stop tomcat.  Even though tomcat shuts down,
that
> process still stays all of the way up at 97% and can only be stopped by
> executing the kill command.  Does anyone know a fix for this problem,
> upgrade tomcat, upgrade linux version, upgrade jre, etc.?
>
> I have seen many posts on this subject before, but never a definate
answer.
> I see that many people say check the code, so I am doing that for now.
The
> only strange thing is that I can't figure out exactly what causes this to
> happen, and it can't be duplicated on development machines running tomcat
> stand alone on win2k.
>
> Any help would REALLY be appreciated!!!
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>




--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>


Re: Common Problem with Tomcat/Apache (processer sticks at 97% on linux)

Posted by Jeff Kilbride <je...@kilbride.com>.
At the very least, upgrade to the latest stable 3.2.x version. 3.2.1 is
quite old and had several security problems. I'm pretty sure they are about
to release 3.2.4, so that might be a good incentive. You don't have to
change any of your config files, just replace the jar files in your
TOMCAT_HOME/lib directory with the new ones.

Thanks,
--jeff

----- Original Message -----
From: "Brandon Cruz" <bc...@norvax.com>
To: "Tomcat Users List" <to...@jakarta.apache.org>
Sent: Thursday, November 15, 2001 5:08 PM
Subject: Common Problem with Tomcat/Apache (processer sticks at 97% on
linux)


> I am using Tomcat 3.2.1 connected to Apache via mod_jk.  For some reason,
> every once in a while, my java (Tomcat) process in linux goes up to 97%
and
> stays there until I try to stop tomcat.  Even though tomcat shuts down,
that
> process still stays all of the way up at 97% and can only be stopped by
> executing the kill command.  Does anyone know a fix for this problem,
> upgrade tomcat, upgrade linux version, upgrade jre, etc.?
>
> I have seen many posts on this subject before, but never a definate
answer.
> I see that many people say check the code, so I am doing that for now.
The
> only strange thing is that I can't figure out exactly what causes this to
> happen, and it can't be duplicated on development machines running tomcat
> stand alone on win2k.
>
> Any help would REALLY be appreciated!!!
>
>
> --
> To unsubscribe:   <ma...@jakarta.apache.org>
> For additional commands: <ma...@jakarta.apache.org>
> Troubles with the list: <ma...@jakarta.apache.org>
>


--
To unsubscribe:   <ma...@jakarta.apache.org>
For additional commands: <ma...@jakarta.apache.org>
Troubles with the list: <ma...@jakarta.apache.org>