tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject Re: limit threads per servlet in Tomcat
Date Fri, 08 Dec 2000 16:18:13 GMT

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"
            <Parameter name="port" value="8007"/>
                value="1" />

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.


"J Y" <> on 12/08/2000 03:35:09 PM

Please respond to

 cc:      (bcc: Clifford Okoro/Harrow/Ladbrokes)              
 Subject: limit threads per servlet in Tomcat                 


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



Get more from the Web.  FREE MSN Explorer download :


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

View raw message