Oh yes there is a way to set it. In the server.xml file. Like this

        <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="3"/>
            <Parameter
                name="max_spare_threads"
                value="2"/>
            <Parameter
                name="min_spare_threads"
                value="1" />
        </Connector>

Just find the Connector entry corresponding to the one above and go for it. The
nodes that youll need are the 'thread' named nodes.

Yes, it'll hit your performance (esp OutOfmemory) if you don't allocate enough
for the possible threads so take care.

Clifford







"J Y" <[EMAIL PROTECTED]> on 12/08/2000 03:35:09 PM


Please respond to [EMAIL PROTECTED]
                                                                                
                                                                                
                                                                                


                                                              
                                                              
                                                              
 To:      [EMAIL PROTECTED]                      
                                                              
 cc:      (bcc: Clifford Okoro/Harrow/Ladbrokes)              
                                                              
                                                              
                                                              
 Subject: limit threads per servlet in Tomcat                 
                                                              







Hi

I wish to setup Tomcat to limit threads per servlet, say 20 threads to
execute in one servlet concurrently. the 21th request would cause the
Tomecat engine to generate a new servlet instance.

Is there a way to do it. any comment appriciated.

Also, what's the performance concerns. is that possible to create a pool of
servelts?

Thanks

Jay
_____________________________________________________________________________________

Get more from the Web.  FREE MSN Explorer download : http://explorer.msn.com




______________________________________________________________________


   This communication and any files transmitted with it are confidential and
   intended solely for the use of the individual or entity to whom they are
   addressed. If you have received it in error please notify the sender or
   [EMAIL PROTECTED] or telephone +44 (0)20 8868 8899. The unauthorised
   use, disclosure, copying or alteration of this message is forbidden.
   Ladbrokes Limited will not be liable for direct, special, indirect or
   consequential damage as a result of any virus being passed on, or arising
   from alteration of the contents of this message by a third party. Please note
   that in replying to this mail, you are granting the right for that reply to
   be forwarded to any other individual and to be read by a surrogate in the
   event that the intended recipient is out of the office or is no longer
   employed by the company.
   Any views expressed by an individual within this message do not necessarily
   reflect the views of the firm.



Reply via email to