You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tomcat.apache.org by Joe Clem <cl...@home.com> on 2001/08/03 01:39:28 UTC

CPU going to 100%

I know there have been some discussion a few weeks ago.  That is when I
was just getting started with tomcat.  A person refered to the a section
in the readme file 6.11.  My readme file 6.11 deals with SSL and APJ12?

My problem is that 100% of my cpu is taken up after tomcat has been
running for a while.

tomcat v3.2.3
iis
nt4

If the answer should be in the documentation please point me in the
right direction, but it is not in the readme file under 6.11

Thanks.

Joe


Re: CPU going to 100%

Posted by Joe Clem <cl...@home.com>.
Perhaps I misunderstood about a properly configured server.xml file with a root
context.

Here is what I put in my server.xml to get what I thought was a root context.

<Context path="/"
              docBase="c:\inetpub\wwwroot
             crossContext="false"
             debug="0"
            reloadable="true"
</Context>

I still get 100% cpu usage.

Hopefully I just misunderstood and someone can clarify.

Thanks.

Joe

Andrew Robson wrote:

> Hi,
>   Following is taken from the readme for 3.2 and is probably
> what the person was referring to
>
> "6.11 Misconfiguration Can Cause CPU-Bound Loop
>
> If you misconfigure Tomcat 3.2 in a way that there is no valid context to
> handle a request (such as removing the root context and then attempting a
> request that should be handled by that context), Tomcat will enter a CPU-bound
> loop instead of responding with a 404 error.
>
> Workaround:  kill the offending Tomcat process and correct your server.xml
> file such that there is a properly configured root context."
>
> Haven't checked whether this is still an issue for 3.2.3 but at least you
> know now where this advice is coming from even if it doesn't help ;-)
>
> andrew
>
> On Fri, 03 Aug 2001, you wrote:
> > I know there have been some discussion a few weeks ago.  That is when I
> > was just getting started with tomcat.  A person refered to the a section
> > in the readme file 6.11.  My readme file 6.11 deals with SSL and APJ12?
> >
> > My problem is that 100% of my cpu is taken up after tomcat has been
> > running for a while.
> >
> > tomcat v3.2.3
> > iis
> > nt4
> >
> > If the answer should be in the documentation please point me in the
> > right direction, but it is not in the readme file under 6.11
> >
> > Thanks.
> >
> > Joe
> --


Solved (was: RE: big5 problem with Tomcat on RedHat 7.1)

Posted by Aravind Naidu <ar...@eha.net>.
Solved the problem. For others interested.
By default Tomcat 3.2.1 uses a 8859-1 and 3.2.3 ISO-8859-1 and just
explicitly setting the page directive in the JSP overcame the problem.

<%@ page contentType="text/html; charset=big5" %>

-- Aravind


-----Original Message-----
From: Aravind Naidu [mailto:aravind.naidu@eha.net]
Sent: Saturday, 4 August 2001 21:42
To: tomcat-user@jakarta.apache.org
Subject: big5 problem with Tomcat on RedHat 7.1



This may not be Tomcat's problem but I am hoping someone will point me in
the right direction.

I have 2 installations, one Tomcat 3.2.1 on RedHat 6.2 and the other Tomcat
3.2.3 on RedHat 7.1

I have a JSP file with the following tag
<META http-equiv="Content-Style-Type" content="text/css" charset="big5">

The RedHat 6.2 machine delivers Big5 characters properly, while the RedHat
7.1's Tomcat server does not.

Environment is that Tomcat is standalone and the JDK is IBM 1.3

-- Aravind


big5 problem with Tomcat on RedHat 7.1

Posted by Aravind Naidu <ar...@eha.net>.
This may not be Tomcat's problem but I am hoping someone will point me in
the right direction.

I have 2 installations, one Tomcat 3.2.1 on RedHat 6.2 and the other Tomcat
3.2.3 on RedHat 7.1

I have a JSP file with the following tag
<META http-equiv="Content-Style-Type" content="text/css" charset="big5">

The RedHat 6.2 machine delivers Big5 characters properly, while the RedHat
7.1's Tomcat server does not.

Environment is that Tomcat is standalone and the JDK is IBM 1.3

-- Aravind



Re: CPU going to 100%

Posted by Andrew Robson <an...@netscapeonline.co.uk>.
Hi,
  Following is taken from the readme for 3.2 and is probably
what the person was referring to 
	
"6.11 Misconfiguration Can Cause CPU-Bound Loop
 
If you misconfigure Tomcat 3.2 in a way that there is no valid context to
handle a request (such as removing the root context and then attempting a
request that should be handled by that context), Tomcat will enter a CPU-bound
loop instead of responding with a 404 error.
 
Workaround:  kill the offending Tomcat process and correct your server.xml
file such that there is a properly configured root context."

Haven't checked whether this is still an issue for 3.2.3 but at least you 
know now where this advice is coming from even if it doesn't help ;-)

andrew

On Fri, 03 Aug 2001, you wrote:
> I know there have been some discussion a few weeks ago.  That is when I
> was just getting started with tomcat.  A person refered to the a section
> in the readme file 6.11.  My readme file 6.11 deals with SSL and APJ12?
> 
> My problem is that 100% of my cpu is taken up after tomcat has been
> running for a while.
> 
> tomcat v3.2.3
> iis
> nt4
> 
> If the answer should be in the documentation please point me in the
> right direction, but it is not in the readme file under 6.11
> 
> Thanks.
> 
> Joe
--