itching Simon <[EMAIL PROTECTED]>
>Reply-To: [EMAIL PROTECTED]
>To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>
>Subject: RE: limit threads per servlet in Tomcat
>Date: Fri, 8 Dec 2000 17:19:28 +0100
>
>Hi Jay,
>
>Why would you want to do this
J Y wrote:
> 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.
>
There is no way to do this in Tomcat.
On the other hand, doing this would not
ROTECTED]]
> Sent: Friday, December 08, 2000 5:18 PM
> To: [EMAIL PROTECTED]
> Subject: Re: limit threads per servlet in Tomcat
>
>
>
> Oh yes there is a way to set it. In the server.xml file. Like this
>
>
>
Hi Jay,
Why would you want to do this?
As far as I can see, having one object with 21 threads
is *more* efficient than 21 threads distributed across
two objects.
If you have some kind of lock contention, then using two
objects is not going to improve this; by definition, a lock is
only require
Oh yes there is a way to set it. In the server.xml file. Like this
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