tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From claudio <>
Subject looks minSpareThreads is not honored - tc 7.0.25
Date Fri, 24 Feb 2012 00:51:04 GMT
Hi, I am using tomcat 7.0.25 on linux and java 6u30 to perform some load
testing, and came to this observation.

Performing some ab (apache benchmark) tests as specified in [1] and the http
connector configured as:

- references to an executor as
    <Executor name="tomcatThreadPool" namePrefix="catalina-exec-"
        maxThreads="150" minSpareThreads="4"/>

- without an executor  and with a minSpareThreads="15" in the connector

- no minSpareThreads at connector and references to executor 

After 60s of the ab test, I see all request processor threads are terminated
(reported by jstack PID or ps -p PID -o nlwp).  But accordingly to the
connector documentation "The minimum number of threads always kept running."  

Is the connector docs wrong or is it a bug in the connector threading
implementation ?

    <Connector port="8080" protocol="HTTP/1.1" minSpareThreads="15"
               connectionTimeout="20000" processorCache="150"
               redirectPort="8443" maxThreads="1024"/>

1. ab  -n 50000 -c 1000

View this message in context:
Sent from the Tomcat - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message