I believe that the threads setting refers only to the number
of threads serving requests.. There are various other threads already
running from the Tomcat core that you don't have control over..


Andrew Stewart wrote:
> 
> Thanks for the reply:
> 
> However I tried adding it into the server.xml file, in the
> Ajp13Connector area (as I'm running it out-of-process), and it still
> produces 10 threads on startup when i had specified 2, here is a
> snippet:
> 
>         <!-- Apache AJP12 support. This is also used to shut down
> tomcat.
>           -->
>         <Connector
> className="org.apache.tomcat.service.PoolTcpConnector">
>             <Parameter name="handler"
> 
> value="org.apache.tomcat.service.connector.Ajp12ConnectionHandler"/>
>             <Parameter name="port" value="8007"/>
>             <Parameter name="max_threads" value="4"/>
>             <Parameter name="max_spare_threads" value="4"/>
>             <Parameter name="min_spare_threads" value="2"/>
>         </Connector>
> 
>         <!-- Apache AJP13 support. -->
>         <Connector
> className="org.apache.tomcat.service.PoolTcpConnector">
>             <Parameter name="handler"
> 
> value="org.apache.tomcat.service.connector.Ajp13ConnectionHandler"/>
>             <Parameter name="port" value="8009"/>
>             <Parameter name="max_threads" value="4"/>
>             <Parameter name="max_spare_threads" value="4"/>
>             <Parameter name="min_spare_threads" value="2"/>
>         </Connector>
> 
> ##################################################
> #  Andrew Stewart ([EMAIL PROTECTED])
> #  MEGAStation.com
> #  Web / Systems Developer
> ##################################################
> 
> -----Original Message-----
> From: Geoff Lane [mailto:[EMAIL PROTECTED]]
> Sent: Tuesday, February 13, 2001 5:22 PM
> To: [EMAIL PROTECTED]
> Subject: Re: Hi, Using Tomcat for the first time:
> 
> Yes, there are max_threads, min_spare_threads and max_spare_threads.
> See:
> http://jakarta.apache.org/tomcat/jakarta-tomcat/src/doc/uguide/tomcat_ug
> .html
> under 'Configuring thread pools'
> 
> Example:
> <Connector className="org.apache.tomcat.service.PoolTcpConnector">
> <Parameter name="handler"
> value="org.apache.tomcat.service.http.HttpConnectionHandler"/>
> <Parameter name="port" value="80"/>
> <Parameter name="max_threads" value="5" />
> <Parameter name="min_spare_threads" value="2" />
> </Connector>
> 
> Andrew Stewart wrote:
> >
> > and I have to say I am impressed so far
> >
> > I've tried three other Java VM's and have had very dissapointing
> > experiences with them (Caucho's Resin, NA's ServletExec, and Allaire's
> > JRun).
> >
> > Anyway, one of the few questions I'd like to ask is if there's anyway
> to
> > control the number of threads (or workers) that come up when Tomcat is
> > run.
> >
> > I tried looking for a setting something like MinServers / MaxServers
> > akin to Apache but no dice, any help would be appreciated.
> >
> > Thanks in advance.
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, email: [EMAIL PROTECTED]
> 
> --
> 
> Geoff Lane <[EMAIL PROTECTED]>
> (650) 969-5000 x104
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, email: [EMAIL PROTECTED]

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to