Re: [OT] Tomcat causing high CPU load

2007-11-08 Thread Andrew Miehs
On 08/11/2007, at 6:29 PM, Bob Riaz wrote: Thanks. StringBuilder seems to be the most popular suggestion! I'm going to implement this and report on any changes I see in Tomcat's behavior. I'm also looking at other possiblities, such as Tomcat's I/O activities causing thrashing if I/O is exc

RE: [OT] Tomcat causing high CPU load

2007-11-08 Thread Bob Riaz
, November 07, 2007 11:14 PM To: Tomcat Users List Subject: Re: [OT] Tomcat causing high CPU load Hi, From a programmatic point of view > Many thanks for all the suggestions. I found a simple tool called StackTrace > from http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take

Re: [OT] Tomcat causing high CPU load

2007-11-07 Thread Kev Jackson
Hi, From a programmatic point of view Many thanks for all the suggestions. I found a simple tool called StackTrace from http://www.adaptj.com/root/main/tracehowtos#ht0 to help me take thread dumps from Tomcat. I found when the CPU load was high that there was a thread from the suspect web app

RE: [OT] Tomcat causing high CPU load

2007-11-07 Thread Caldarale, Charles R
> From: David kerber [mailto:[EMAIL PROTECTED] > Subject: Re: [OT] Tomcat causing high CPU load > > Instead of using a string, use a StringBuffer and > .append() to it Or, if you're on Java 1.5 or 1.6, use a StringBuilder object; it's the same as StringBuffer but wi

RE: [OT] Tomcat causing high CPU load

2007-11-07 Thread Bob Riaz
gain for everybody's help! bob -Original Message- From: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 9:21 AM To: Tomcat Users List Subject: Re: [OT] Tomcat causing high CPU load -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie, Charlie Wi

Re: [OT] Tomcat causing high CPU load

2007-11-07 Thread alvaro tovar
the application qhere i work, also have a big charge for the memory, the server have this parametres, and never this crased, i think that this force to free memory, the memory no colapse, but some errors to extrange, i think that free memory that is in use, and this cause problems, kill a sesion, o

Re: [OT] Tomcat causing high CPU load

2007-11-07 Thread David kerber
m: Christopher Schultz [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 9:21 AM To: Tomcat Users List Subject: Re: [OT] Tomcat causing high CPU load -BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie, Charlie Wingate wrote: There is a kill.exe (older version in resource kits) and

Re: [OT] Tomcat causing high CPU load

2007-11-06 Thread Christopher Schultz
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Charlie, Charlie Wingate wrote: > There is a kill.exe (older version in resource kits) and a newer > taskkill.exe included with XP [onward] Note that taskkill.exe and UNIX kill are completely different. taskkill actually kills tasks, while the UNIX k

RE: Tomcat causing high CPU load

2007-11-06 Thread Charlie Wingate
e level of thinking with which we created them. - Albert Einstein -Original Message- From: Caldarale, Charles R [mailto:[EMAIL PROTECTED] Sent: Tuesday, November 06, 2007 9:28 AM To: Tomcat Users List Subject: RE: Tomcat causing high CPU load > From: Andrew Miehs [mailto:[EMAIL PROTECTE

RE: Tomcat causing high CPU load

2007-11-06 Thread Caldarale, Charles R
> From: Andrew Miehs [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat causing high CPU load > > Kill -3 > ps auxwh The OP is running on Windows... - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intende

Re: Tomcat causing high CPU load

2007-11-06 Thread Leon Rosenberg
t; On 11/5/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > > From: Caldarale, Charles R > > > > Subject: RE: Tomcat causing high CPU load > > > > > > > > There are also some 3rd-party tools to take thread dumps of > > > > services (I

Re: Tomcat causing high CPU load

2007-11-06 Thread Andrew Miehs
Hi Bob, Kill -3 Will produce a stack trace in catalina.out This problem is VERY most probably your code, and not tomcat, but a stacktrace should show this. ps auxwh will also give you an indication, its probably just 1 thread pushing you to such a high load. As for "walking" through the cod

Re: Tomcat causing high CPU load

2007-11-05 Thread Peng Tuck Kwok
gards > Leon > > > On 11/5/07, Caldarale, Charles R <[EMAIL PROTECTED]> wrote: > > > From: Caldarale, Charles R > > > Subject: RE: Tomcat causing high CPU load > > > > > > There are also some 3rd-party tools to take thread dumps of &g

Re: Tomcat causing high CPU load

2007-11-05 Thread Leon Rosenberg
ubject: RE: Tomcat causing high CPU load > > > > There are also some 3rd-party tools to take thread dumps of > > services (I think JProbe does, for example). > > Also, Lambda Probe (www.lambdaprobe.org) can display stack traces, but > only one thread at a time. >

RE: Tomcat causing high CPU load

2007-11-05 Thread Caldarale, Charles R
> From: Caldarale, Charles R > Subject: RE: Tomcat causing high CPU load > > There are also some 3rd-party tools to take thread dumps of > services (I think JProbe does, for example). Also, Lambda Probe (www.lambdaprobe.org) can display stack traces, but only one thread at a

RE: Tomcat causing high CPU load

2007-11-05 Thread Caldarale, Charles R
> From: Sai Bobba [mailto:[EMAIL PROTECTED] > Subject: Re: Tomcat causing high CPU load > > I've searched the web for taking thread dumps Try searching the Tomcat mailing list archives (http://marc.info/?l=tomcat-user) as well. For Windows, run the process from a command pr

Re: Tomcat causing high CPU load

2007-11-05 Thread Sai Bobba
L PROTECTED] > > Subject: Tomcat causing high CPU load > > > > - Tomcat was responsible for this CPU > > load almost exclusively > > You need to differentiate between Tomcat and the webapps running within, > even though they are all running in the same process. It is

RE: Tomcat causing high CPU load

2007-11-04 Thread Caldarale, Charles R
> From: Sai Bobba [mailto:[EMAIL PROTECTED] > Subject: Tomcat causing high CPU load > > - Tomcat was responsible for this CPU > load almost exclusively You need to differentiate between Tomcat and the webapps running within, even though they are all running in the same process

Re: Tomcat causing high CPU load

2007-11-04 Thread Martin Gainty
what happens in jconsole over that period of time? M- - Original Message - From: "Sai Bobba" <[EMAIL PROTECTED]> To: Sent: Sunday, November 04, 2007 8:25 PM Subject: Tomcat causing high CPU load > Hi, > > I'm using the following: > > JDK1.5 > Tomc

Tomcat causing high CPU load

2007-11-04 Thread Sai Bobba
Hi, I'm using the following: JDK1.5 Tomcat 6 SQL Server 2000 Server running on Windows 2000 The web app deployed consists of: an application form filled in by the prospective student, a servlet that gets the form parameters (>60), processes them, and saves the data input by the user to several t