tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Brantley Hobbs <sbho...@uga.edu>
Subject httpd/JK/Tomcat hung connections
Date Wed, 09 May 2007 21:29:47 GMT
All,

I have a web application that appears to run just fine at low loads, but 
when we ramp up to high load levels, strange things start happening.

The symptoms are a *ton* of apparently hung threads on the tomcat status 
page for my JK connector.  They're in stage "S", with 0KB sent and 0KB 
recv and they never die.

Eventually, we reach a point on httpd where we get:
[error] server reached MaxClients setting, consider raising the 
MaxClients setting

And when we reach this point, the entire httpd server stops responding. 
  I post this to the tomcat list because this same server serves PHP 
under similar (or worse) loads with no problems.

Here's my worker properties file:
worker.lbJ2EE.balanced_workers=web1
worker.web1.type=ajp13
worker.web1.host=128.192.100.14
worker.web1.port=8009
worker.web1.lbfactor=1
worker.web1.retries=5
worker.web1.connection_pool_timeout=60

Here's my AJP connector's configuration:
<Connector port="8009" enableLookups="false" redirectPort="8443" 
protocol="AJP/1.3" maxThreads="1500" backlog="300" 
connectionTimeout="60000"/>

Here's my httpd worker.c configuration
<IfModule worker.c>
StartServers         2
MaxClients          150
MinSpareThreads     25
MaxSpareThreads     75
ThreadsPerChild     25
MaxRequestsPerChild  0
</IfModule>



Tomcat 5.5.23 (Sun jvm 1.6.0-b105)
Apache 2.0.52
mod_jk 1.2.6
All running on RHEL4

Any help appreciated!  I don't have a great deal of Tomcat load tuning 
experience.

Brantley Hobbs

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org
For additional commands, e-mail: users-help@tomcat.apache.org


Mime
View raw message