tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "George Sexton" <gsex...@mhsoftware.com>
Subject RE: Poor Performance Tomcat5.5.7, Apache2.0.52, Solaris 9
Date Sat, 04 Jun 2005 16:09:50 GMT
It's almost certainly your application.

I would start with findbugs

http://findbugs.sourceforge.net/

And if it doesn't help you sort it out, look at an application profiler.

I run about 40 virtual hosts, with a fairly complex calendar app, that gets
10s of thousands of hits per day, on a PIII 500, and the utilization is
around 5-10% during the day.

George Sexton
MH Software, Inc.
http://www.mhsoftware.com/
Voice: 303 438 9585
  

> -----Original Message-----
> From: BATCHELOR, SCOTT (CONTRACTOR) [mailto:SCOTT.BATCHELOR@DFAS.MIL] 
> Sent: Thursday, June 02, 2005 8:52 AM
> To: tomcat-user@jakarta.apache.org
> Subject: Poor Performance Tomcat5.5.7, Apache2.0.52, Solaris 9
> 
> I am hoping someone has experienced this before. 
> 
> The installation is a binary install of Tomcat and a binary 
> install of mod_jk 1.2.6 connector.
> 
> We have been running performance tests on this install and 
> Tomcat is very, very cpu intensive topping out at 55% of the 
> cpu's on the box. I have never experienced this before and I 
> am having a hard time tracking down the problem.  The 
> application does lookups and updates to an Oracle 9i database 
> and it does use its own homegrown connection pool. But the 
> poor performance seems to be on the web side with server 
> threads climbing up into the four hundreds at times.
> 
> I am including portions of my config files hoping that 
> someone will spot something that I am doing wrong.
> 
> Httpd.conf:
> 
> Timeout 300
> KeepAlive On
> MaxKeepAliveRequests 500
> KeepAliveTimeout 15
> StartServers        2
> MaxClients          400
> MinSpareThreads     150
> MaxSpareThreads     300 
> ThreadsPerChild     25
> MaxRequestsPerChild 10000 
> AcceptMutex fcntl
> 
> Tomcat Server.xml:
> 
>  <!-- Define an AJP 1.3 Connector on port 8009 -->
>         <Connector port="8011" 
>                enableLookups="false" redirectPort="8443" 
> protocol="AJP/1.3"
>                maxThreads="500" minSpareThreads="75" 
> maxSpareThreads="250"/>
> 
>  <Host name="localhost" appBase="webapps"
>        unpackWARs="true" autoDeploy="true"
>        xmlValidation="false" xmlNamespaceAware="false">
> 
> Tomcat workers.properties:
> 
> worker.ajp13w.type=ajp13
> worker.ajp13w.host=somehost
> worker.ajp13w.port=8011
> worker.ajp13w.cachesize=600
> worker.ajp13w.cache_timeout=600
> 
> Can someone tell the correlation of the worker.cachesize and 
> an htptd.conf directive?
> 
> Thanks in advance.
> 
> -SB
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: tomcat-user-help@jakarta.apache.org
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message