tomcat-users mailing list archives

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

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:

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

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

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 

Brantley Hobbs

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message