tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Shields <rshie...@messagelabs.com>
Subject RE: Limiting the number of threads Tomcat 4.1 creates
Date Fri, 30 Sep 2005 21:31:27 GMT
Hi Chuck,

On Fri, 2005-09-30 at 16:08 -0500, Caldarale, Charles R wrote:
<snip>
> > Is there a way to limit the number of threads that Tomcat 4.1 
> > creates in its thread pool?
> 
> Reading the doc never hurts:
> http://jakarta.apache.org/tomcat/tomcat-4.1-doc/config/coyote.html
> 
> Look at the maxProcessors attribute.

I've tried setting that to 10 and restarting Tomcat, but when I do a "ps
auxm" I see 20 threads running under the Sun VM:

rshields     24058 15.0  8.3 310936 42832 pts/0    -    22:22
0:03 /var/tomcat/jdk1.5.0/bin/java -server -Xmx96m
-Dfile.encoding=ISO8859-15 -Xdebug -Xrunjdwp:transport=dt_soc
rshields         -  5.1    -      -     - -        Sl   22:22   0:01 -
rshields         -  0.4    -      -     - -        Sl   22:22   0:00 -
rshields         -  0.0    -      -     - -        Sl   22:22   0:00 -

etc, 17 threads more.

In my conf/server.xml, the only connector defined is:

  <Connector className="org.apache.coyote.tomcat4.CoyoteConnector"
             port="8080"
             minProcessors="5"
             maxProcessors="10"
             enableLookups="true"
             redirectPort="8443"
             acceptCount="10"
             debug="0"
             connectionTimeout="20000"
             useURIValidationHack="false" />

>  - Chuck

Regards
Rob

______________________________________________________________________
This email has been scanned by the MessageLabs Email Security System.
For more information please visit http://www.messagelabs.com/email 
______________________________________________________________________

---------------------------------------------------------------------
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