RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Chris Read

Greetings...

Have you also noticed a spike in CPU usage on your Apache server running
mod_jk, or your network throughput?

The reason I ask is we've got a similar problem here. We've got a slightly
different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 1.3.1 - all on
Solaris), but the same symptoms. 

Basically what we're seeing is sometimes mod_jk and the AJP13 connecter get
stuck in an infinite loop spewing data at each other as fast as possible
(and always the same data: Tomcat asking for a BODY_CHUNK of 8186 bytes, and
mod_jk replying with an empty packet). 

The problem will only affect one connection at a time from the pool, but
will slowly step up one connection at a time. Restarting either Tomcat or
Apache solves the problem, but I've not been able to find any info on this
either. I've been trying for a few days to replicate the problem on demand,
but no luck yet

Any of this sound familiar?

Chris

-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: 30 September 2002 21:57
To: Tomcat Users List
Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


Hi,

I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
processes slowly take more and more CPU power.  After about a day, java is
taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If I leave it
running for more than three or four days, everything is VERY slow.  Does
anyone know why this happens and if it is normal?

I have not been able to find an answer to this anywhere!

Brandon


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


_
This message has been checked for all known viruses by the 
MessageLabs Virus Control Centre.

This message has been checked for all known viruses by the MessageLabs Virus Control 
Centre.


*

Notice:  This email is confidential and may contain copyright material of Ocado 
Limited (the Company). Opinions and views expressed in this message may not 
necessarily reflect the opinions and views of the Company.
If you are not the intended recipient, please notify us immediately and delete all 
copies of this message. Please note that it is your responsibility to scan this 
message for viruses.

Company reg. no. 3875000.  Swallowdale Lane, Hemel Hempstead HP2 7PY

*

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




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Turner, John


I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Hi,
 
 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 
 7.1.  The java
 processes slowly take more and more CPU power.  After about a 
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc. 
  If I leave it
 running for more than three or four days, everything is VERY 
 slow.  Does
 anyone know why this happens and if it is normal?
 
 I have not been able to find an answer to this anywhere!
 
 Brandon
 
 
 --
 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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Adam Greene

I have to agree.  I have a website that we pounded with 3 test computers and
couldn't get Tomcat over 20% usage.

-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 9:19 AM
To: 'Tomcat Users List'
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???



I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
 processes slowly take more and more CPU power.  After about a
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.
  If I leave it
 running for more than three or four days, everything is VERY
 slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




Re: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Glenn Nielsen

This sounds like the bug I fixed in Tomcat 4.1.x where infrequently I saw
a POST request put Tomcat into an infinite loop.  We run Apache and Tomcat
on different servers.  I had noticed the increased CPU usage on the Tomcat
server but hadn't noticed the increased CPU usage on the Apache server.
I went back and reviewed our system load history and verified that when
this bug is triggered both Apache and Tomcat cause increased CPU usage.

This bug was fixed in the Tomcat 4.1.x branch and I ported it back to
the Tomcat 4.0.x branch.  This bug fix should be in the Tomcat 4.0.5
release.

Regards,

Glenn

Chris Read wrote:
 Greetings...
 
 Have you also noticed a spike in CPU usage on your Apache server running
 mod_jk, or your network throughput?
 
 The reason I ask is we've got a similar problem here. We've got a slightly
 different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 1.3.1 - all on
 Solaris), but the same symptoms. 
 
 Basically what we're seeing is sometimes mod_jk and the AJP13 connecter get
 stuck in an infinite loop spewing data at each other as fast as possible
 (and always the same data: Tomcat asking for a BODY_CHUNK of 8186 bytes, and
 mod_jk replying with an empty packet). 
 
 The problem will only affect one connection at a time from the pool, but
 will slowly step up one connection at a time. Restarting either Tomcat or
 Apache solves the problem, but I've not been able to find any info on this
 either. I've been trying for a few days to replicate the problem on demand,
 but no luck yet
 
 Any of this sound familiar?
 
 Chris


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




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Rossen Raykov

Upgrade at least to Tomcat 4.0.4 where this problem is particularly solved.
I said particularly since the problem will still occur but it'll be handled
more gracefully without to sky rocket the CPU usage.
I'm not so sure will an upgrade to the latest mod_jk cure the problem
completely. I just moved to Jakarta Tomcat connectors jk-1.2.0 (released
last week) and so fare I didn't have time to observe the new system
behavior.

Regards,
Rossen Raykov

 -Original Message-
 From: Chris Read [mailto:[EMAIL PROTECTED]]
 Sent: Tuesday, October 01, 2002 5:09 AM
 To: 'Tomcat Users List'
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Greetings...
 
 Have you also noticed a spike in CPU usage on your Apache 
 server running
 mod_jk, or your network throughput?
 
 The reason I ask is we've got a similar problem here. We've 
 got a slightly
 different setup (Apache 1.3.x, mod_jk, Tomcat 4.0.3, Sun JDK 
 1.3.1 - all on
 Solaris), but the same symptoms. 
 
 Basically what we're seeing is sometimes mod_jk and the AJP13 
 connecter get
 stuck in an infinite loop spewing data at each other as fast 
 as possible
 (and always the same data: Tomcat asking for a BODY_CHUNK of 
 8186 bytes, and
 mod_jk replying with an empty packet). 
 
 The problem will only affect one connection at a time from 
 the pool, but
 will slowly step up one connection at a time. Restarting 
 either Tomcat or
 Apache solves the problem, but I've not been able to find any 
 info on this
 either. I've been trying for a few days to replicate the 
 problem on demand,
 but no luck yet
 
 Any of this sound familiar?
 
 Chris
 
 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: 30 September 2002 21:57
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 Hi,
 
 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 
 7.1.  The java
 processes slowly take more and more CPU power.  After about a 
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc. 
  If I leave it
 running for more than three or four days, everything is VERY 
 slow.  Does
 anyone know why this happens and if it is normal?
 
 I have not been able to find an answer to this anywhere!
 
 Brandon
 
 
 --
 To unsubscribe, e-mail:
 mailto:[EMAIL PROTECTED]
 For additional commands, e-mail:
 mailto:[EMAIL PROTECTED]
 
 
 _
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
 This message has been checked for all known viruses by the 
 MessageLabs Virus Control Centre.
 
   
 *
 
 Notice:  This email is confidential and may contain copyright 
 material of Ocado Limited (the Company). Opinions and views 
 expressed in this message may not necessarily reflect the 
 opinions and views of the Company.
 If you are not the intended recipient, please notify us 
 immediately and delete all copies of this message. Please 
 note that it is your responsibility to scan this message for viruses.
 
 Company reg. no. 3875000.  Swallowdale Lane, Hemel Hempstead HP2 7PY
 
 *
 
 --
 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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-10-01 Thread Brandon Cruz


Glenn Neilson mentioned to me yesterday that I might want to use
the -verbose:gc command when starting tomcat so that I can see how garbage
collection is working.  I have done this but it does not seem to give me
much useful info.  Is there anything in particular that I should be looking
for?

Is there a good way to pinpoint the problem to the connector either by
looking at logs, setting a switch when I startup tomat, or anything else?  I
can't seem to find anything so far, who knows.


Brandon


-Original Message-
From: Turner, John [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, October 01, 2002 7:19 AM
To: 'Tomcat Users List'
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???



I'm not sure it is Tomcat.

I have Tomcat 3.1 with Apache 1.3.26 and mod_jserv, many separate instances
of Tomcat.  My servers rarely go over 40% CPU, and my sites are not only
high-traffic but resource intensive (on-the-fly custom graphics
manipulation).  Uptime is 112 days.

I guess it could be a bug the showed up between Tomcat 3.1 and 3.2.4, but
more likely it is a combination of RH 7.1 (mine are 7.2), the connector
(which source of the connector are you using) and Tomcat.  The issue
could just as easily be in RH or the connector.

John


 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 4:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
 processes slowly take more and more CPU power.  After about a
 day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.
  If I leave it
 running for more than three or four days, everything is VERY
 slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Brandon Cruz

Hi,

I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
processes slowly take more and more CPU power.  After about a day, java is
taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If I leave it
running for more than three or four days, everything is VERY slow.  Does
anyone know why this happens and if it is normal?

I have not been able to find an answer to this anywhere!

Brandon


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




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Mike Jackson

What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
etc
with IBM's 1.3 jdk and don't experience anything like that.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 1:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
 processes slowly take more and more CPU power.  After about a day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
 I leave it
 running for more than three or four days, everything is VERY slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Brandon Cruz

Mike,

Thanks for answering.

I'm using Sun's JDK 1.3.1_01.

We have been running this in production for over year and I think we have
always had the problem.  Since 3.2.4 requires restart whenever a web
application is changed, it used to just get restarted often enough so that
nobody ever noticed.  There are enough people using the application now that
it is becoming more and more noticable.  I'm afraid that we are getting
close to a point where it will be necessary to restart tomcat every day.  It
also slowly increases the amount of RAM it uses, but that's a whole
different story and I just want to find out one answer at a time.

Has anyone else experienced this and found a resolution to the problem?  I
have seen many posts but no answers...



-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 3:45 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
etc
with IBM's 1.3 jdk and don't experience anything like that.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 1:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
 processes slowly take more and more CPU power.  After about a day, java is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
 I leave it
 running for more than three or four days, everything is VERY slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Mike Jackson

Hmmm, well, first things first, the Sun JDK isn't so good from what I
understand.  From what I've read it seems like the IBM one was nearly
the best, but there's some better ones out there.  You might try
one of two things:  either switch to the IBM jdk (1.3.x) or try
upgrading to the current Sun JDK 1.4.x.  See if that helps things any.
Once the new JDK's are installed it should be a simple matter of
changing your JAVA_HOME or in my case changing a symbolic link.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 2:09 PM
 To: Tomcat Users List
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


 Mike,

 Thanks for answering.

 I'm using Sun's JDK 1.3.1_01.

 We have been running this in production for over year and I think we have
 always had the problem.  Since 3.2.4 requires restart whenever a web
 application is changed, it used to just get restarted often enough so that
 nobody ever noticed.  There are enough people using the
 application now that
 it is becoming more and more noticable.  I'm afraid that we are getting
 close to a point where it will be necessary to restart tomcat
 every day.  It
 also slowly increases the amount of RAM it uses, but that's a whole
 different story and I just want to find out one answer at a time.

 Has anyone else experienced this and found a resolution to the problem?  I
 have seen many posts but no answers...



 -Original Message-
 From: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 3:45 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


 What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
 etc
 with IBM's 1.3 jdk and don't experience anything like that.

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 1:57 PM
  To: Tomcat Users List
  Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
  Hi,
 
  I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
  processes slowly take more and more CPU power.  After about a
 day, java is
  taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
  I leave it
  running for more than three or four days, everything is VERY slow.  Does
  anyone know why this happens and if it is normal?
 
  I have not been able to find an answer to this anywhere!
 
  Brandon
 
 
  --
  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]




Re: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Glenn Nielsen

You may want to start Tomcat with the java -verbose:gc arg next time.
Information about TC including how long it took will be sent to stdout.

This behaviour could be related to your JVM memory configuration/stack usage
and garbage collection.

Brandon Cruz wrote:
 Mike,
 
 Thanks for answering.
 
 I'm using Sun's JDK 1.3.1_01.
 
 We have been running this in production for over year and I think we have
 always had the problem.  Since 3.2.4 requires restart whenever a web
 application is changed, it used to just get restarted often enough so that
 nobody ever noticed.  There are enough people using the application now that
 it is becoming more and more noticable.  I'm afraid that we are getting
 close to a point where it will be necessary to restart tomcat every day.  It
 also slowly increases the amount of RAM it uses, but that's a whole
 different story and I just want to find out one answer at a time.
 
 Has anyone else experienced this and found a resolution to the problem?  I
 have seen many posts but no answers...
 
 
 
 -Original Message-
 From: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 3:45 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
 What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
 etc
 with IBM's 1.3 jdk and don't experience anything like that.
 
 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]
 
 
-Original Message-
From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 1:57 PM
To: Tomcat Users List
Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


Hi,

I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The java
processes slowly take more and more CPU power.  After about a day, java is
taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
I leave it
running for more than three or four days, everything is VERY slow.  Does
anyone know why this happens and if it is normal?

I have not been able to find an answer to this anywhere!

Brandon


--
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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Brandon Cruz

Mike,

Thanks again for your advice!

I have never used other JDK's, will all the methods and the entire API be
the same or should we do extensive testing before trying the new JDK with
our applications?

Either way, we'll download and try it immediately and see what happens.

Brandon

-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 4:03 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


Hmmm, well, first things first, the Sun JDK isn't so good from what I
understand.  From what I've read it seems like the IBM one was nearly
the best, but there's some better ones out there.  You might try
one of two things:  either switch to the IBM jdk (1.3.x) or try
upgrading to the current Sun JDK 1.4.x.  See if that helps things any.
Once the new JDK's are installed it should be a simple matter of
changing your JAVA_HOME or in my case changing a symbolic link.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 2:09 PM
 To: Tomcat Users List
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


 Mike,

 Thanks for answering.

 I'm using Sun's JDK 1.3.1_01.

 We have been running this in production for over year and I think we have
 always had the problem.  Since 3.2.4 requires restart whenever a web
 application is changed, it used to just get restarted often enough so that
 nobody ever noticed.  There are enough people using the
 application now that
 it is becoming more and more noticable.  I'm afraid that we are getting
 close to a point where it will be necessary to restart tomcat
 every day.  It
 also slowly increases the amount of RAM it uses, but that's a whole
 different story and I just want to find out one answer at a time.

 Has anyone else experienced this and found a resolution to the problem?  I
 have seen many posts but no answers...



 -Original Message-
 From: Mike Jackson [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 3:45 PM
 To: Tomcat Users List; [EMAIL PROTECTED]
 Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


 What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
 etc
 with IBM's 1.3 jdk and don't experience anything like that.

 --mikej
 -=-
 mike jackson
 [EMAIL PROTECTED]

  -Original Message-
  From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
  Sent: Monday, September 30, 2002 1:57 PM
  To: Tomcat Users List
  Subject: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 
  Hi,
 
  I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat
 7.1.  The java
  processes slowly take more and more CPU power.  After about a
 day, java is
  taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
  I leave it
  running for more than three or four days, everything is VERY slow.  Does
  anyone know why this happens and if it is normal?
 
  I have not been able to find an answer to this anywhere!
 
  Brandon
 
 
  --
  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]




RE: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread rsequeira


I'm no Linux guru. But did you try running Tomcat with the classic JVM?
With -client, -server or -hotspot I think there are many process that
are started. And if your code opens underlying sockets, etc, it takes more
processes which I believe remain hanging. If you run Tomcat with 
-classic, only one JVM is started.
Hope this helps. Note that JDK 1.4.x doesn't support the -classic.

RS



   

  Brandon Cruz   

  [EMAIL PROTECTED]To:   Tomcat Users List   

   [EMAIL PROTECTED]   

   cc: 

  09/30/02 04:09 PMSubject:  RE: Can someone PLEASE tell 
me why tomcat uses so 
  Please respond to much CPU???

  Tomcat Users

  List

   

   





Mike,

Thanks for answering.

I'm using Sun's JDK 1.3.1_01.

We have been running this in production for over year and I think we have
always had the problem.  Since 3.2.4 requires restart whenever a web
application is changed, it used to just get restarted often enough so that
nobody ever noticed.  There are enough people using the application now
that
it is becoming more and more noticable.  I'm afraid that we are getting
close to a point where it will be necessary to restart tomcat every day.
It
also slowly increases the amount of RAM it uses, but that's a whole
different story and I just want to find out one answer at a time.

Has anyone else experienced this and found a resolution to the problem?  I
have seen many posts but no answers...



-Original Message-
From: Mike Jackson [mailto:[EMAIL PROTECTED]]
Sent: Monday, September 30, 2002 3:45 PM
To: Tomcat Users List; [EMAIL PROTECTED]
Subject: RE: Can someone PLEASE tell me why tomcat uses so much CPU???


What jdk are you using?  I use suse 8, tomcat 3.3.x, apache 1.3.x, mod_jk,
etc
with IBM's 1.3 jdk and don't experience anything like that.

--mikej
-=-
mike jackson
[EMAIL PROTECTED]

 -Original Message-
 From: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Sent: Monday, September 30, 2002 1:57 PM
 To: Tomcat Users List
 Subject: Can someone PLEASE tell me why tomcat uses so much CPU???


 Hi,

 I am using tomcat 3.2.4, mod_jk, apache 1.3.x, linux redhat 7.1.  The
java
 processes slowly take more and more CPU power.  After about a day, java
is
 taking 15% CPU, after two days, about 30% of a 1GHZ CPU, etc.  If
 I leave it
 running for more than three or four days, everything is VERY slow.  Does
 anyone know why this happens and if it is normal?

 I have not been able to find an answer to this anywhere!

 Brandon


 --
 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]




AW: Can someone PLEASE tell me why tomcat uses so much CPU???

2002-09-30 Thread Ralph Einfeldt

Testing after a fundamental change is always a good idea.

Although the API's are the same, neither of the JDK's is 
bug free. If you will hit the bug, depends on your 
application.

We experienced the following:
  - IBM JDK is in most of our cases faster and more stable than 
the sun jdk.
  - In few cases the IBM jdk is less stable. We have one site on a 
dedicated server that crashed regularly with the IBM JDK but 
not wit sun's, although we have other sites on a different 
server with basicaly the same application on a different 
server that run without problems on the IBM JDK.

 -Ursprüngliche Nachricht-
 Von: Brandon Cruz [mailto:[EMAIL PROTECTED]]
 Gesendet: Montag, 30. September 2002 23:24
 An: Tomcat Users List; [EMAIL PROTECTED]
 Betreff: RE: Can someone PLEASE tell me why tomcat uses so much CPU???
 
 I have never used other JDK's, will all the methods and the 
 entire API be the same or should we do extensive testing 
 before trying the new JDK with our applications?
 

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