ok - it seems to happen after the first click that reaches the app (ANY PAGE). There's not that much going on in the app except for some communications with Oracle (and we are very strict with returning connections to the pool etc). The pool only has about 10 connections open.
We do however have a large number of JSP's (350+). Whats weird is that it works OK in 4.x... I'll try doing a touch during our deploys - sounds like our prod deploy scripts are similar to yours. Thanks for your help - Dave --- Peter Lin <[EMAIL PROTECTED]> wrote: > Over the last 2 years, I've done a lot of testing > with tomcat4 and 5 > on linux, windows and solaris. > > A clean tomcat install on a X1 rackmount running > solaris 9 does not > exhibit this kind of behavior. where there's no load > on the system, > the java process is typically below 1%. As other's > have stated, try > running tomcat5 without your webapp to see if the > same CPU usage > occurs. > > if it doesn't, most likely it's your webapp. In > past, I've seen odd > behavior as a result of automated deployment. For > example, at a > previous job, we had a script that packs the app and > uploads it to the > production server. Once the file is uploaded, it > unpacks the files. > > that all went fine, except that gunzip didn't > produce a timestamp. > Which meant everytime a request was made to tomcat, > it recompiled the > jsp. Our fix was to have the upload script touch the > files, so they > have a timestamp. in my case, the problem of slow > performance and high > CPU usage was caused by gunzip. there might be > something very simple > causing your high CPU usage which has nothing to do > with Tomcat. I > hope that helps. > > peter > > On Fri, 25 Jun 2004 13:04:15 +0100, Peter Guyatt > <[EMAIL PROTECTED]> wrote: > > > > Hi There, > > > > Have you tried just running Tomcat without > you web application. > > > > It could be configuration? > > > > I think TC5 has extra configuration files, maybe > its a configuration issue. > > > > Thanks > > > > Pete > > > > > > -----Original Message----- > > From: David Parfitt [mailto:[EMAIL PROTECTED] > > Sent: 25 June 2004 12:50 > > To: Tomcat Users List > > Subject: RE: TC5 / Solaris CPU usage > > > > No luck. Same results. > > > > Cheers- > > Dave > > > > --- Peter Guyatt > <[EMAIL PROTECTED]> > > wrote: > > > Hi There, > > > > > > Try running in client mode. > > > > > > Thanks > > > > > > Pete > > > > > > -----Original Message----- > > > From: David Parfitt [mailto:[EMAIL PROTECTED] > > > Sent: 25 June 2004 11:33 > > > To: Tomcat Users List > > > Subject: RE: TC5 / Solaris CPU usage > > > > > > > > > I've tried 5.0.25 - same results + other > non-related > > > issues so we ended up > > > sticking > > > with 5.0.16. > > > > > > Cheers - > > > Dave > > > > > > > > > "Dale, Matt" <[EMAIL PROTECTED]> wrote: > > > > > > We use tomcat 5 on solaris 9 without this > problem. > > > Have you considered > > > upgrading to the latest stable release 5.0.25? > > > > > > Ta > > > Matt > > > > > > -----Original Message----- > > > From: David Parfitt [mailto:[EMAIL PROTECTED] > > > Sent: 24 June 2004 22:40 > > > To: [EMAIL PROTECTED] > > > Subject: TC5 / Solaris CPU usage > > > > > > > > > Hi - > > > I'm having a problem using Tomcat 5.0.16 on > Solaris > > > 9. > > > We've just upgraded to Tomcat 5 from 4.x and are > > > having a problem > > > with CPU usage. After we start our app, the CPU > > > load goes to 50% and never goes below this > number. > > > Does anyone else have any experience with this > > > problem? > > > Running truss shows that Java is in a tight loop > > > doing a yield(). > > > (We don't have any code that uses threads > outside of > > > the Tomcat > > > code, and we aren't in an infinite loop > anywhere). > > > > > > We are using: > > > java version "1.4.2_04" > > > Java(TM) 2 Runtime Environment, Standard Edition > > > (build 1.4.2_04-b05) > > > Java HotSpot(TM) Client VM (build 1.4.2_04-b05, > > > mixed mode) > > > > > > JAVA_OPTS="-server -Xms300m -Xmx1000m" > > > export JAVA_OPTS > > > > > > I've also tried using these in JAVA_OPTS: > > > -Xconcurrentio -Xincgc > > > > > > SunOS foo 5.9 Generic_112233-11 sun4u sparc > > > SUNW,Sun-Fire-280R > > > > > > Any help would be greatly appreciated! > > > > > > Cheers - > > > Dave > > > > > > > > > --------------------------------- > > > Do you Yahoo!? > > > Yahoo! Mail - 50x more storage than other > providers! > > > Any opinions expressed in this E-mail may be > those > > > of the individual and not > > > necessarily the company. This E-mail and any > files > > > transmitted with it are > > > confidential and solely for the use of the > intended > > > recipient. If you are > > > not the intended recipient or the person > responsible > > > for delivering to the > > > intended recipient, be advised that you have > > > received this E-mail in error > > > and that any use or copying is strictly > prohibited. > > > If you have received > > > this E-mail in error please notify the beCogent > > > postmaster at > > > [EMAIL PROTECTED] > > > Unless expressly stated, opinions in this email > are > > > those of the individual > > > sender and not beCogent Ltd. You must take full > > > responsibility for virus > > > checking this email and any attachments. > > > Please note that the content of this email or > any of > > > its attachments may > > > contain data that falls within the scope of the > Data > > > Protection Acts and > > > that you must ensure that any handling or > processing > > > of such data by you is > > > fully compliant with the terms and provisions of > the > > > Data Protection Act > > > 1984 and 1998. > > > > > > > > > > > > --------------------------------------------------------------------- > === message truncated === __________________________________________________ Do You Yahoo!? Tired of spam? Yahoo! Mail has the best spam protection around http://mail.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
