On Thu, 23 Aug 2001, Venkatesh Sangam wrote:
> Date: Thu, 23 Aug 2001 17:13:22 -0700
> From: Venkatesh Sangam <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Block requests
>
> Hi Craig,
> as you pointed out that if the number of requests increase aboove the =
> accept count, the requests will be rejected. will a message be sent to =
> the client that the request was rejected or the client will indefinitly =
> wait ??
>
Clients who are on the accept queue will wait for an available processor.
However, clients who try when the accept queue is full receive "connection
refused" errors instead.
> thanks
> venkatesh
>
Craig
>
> ----Original Message Follows----
> From: "Craig R. McClanahan" <[EMAIL PROTECTED]>
> Reply-To: [EMAIL PROTECTED]
> To: [EMAIL PROTECTED]
> Subject: Re: Block requests
> Date: Mon, 6 Aug 2001 17:56:04 -0700 (PDT)
>
>
>
> On Mon, 6 Aug 2001, Venkatesh Sangam wrote:
>
> > Hi craig,
> > what I meant by blocking was, rejecting the requests because of flooding
> of
> > requests on the server
> >
> > This is to avoid too many requests waiting to be sevred and not from a
> > particular IP adress
> >
> > This will avoid overload on the server at the cost of rejecting the
> > requests.
> >
>
> That's a very different issue.
>
> What you can do for this is configure your HTTP connector for how many
> simultaneous requests it can support (in Tomcat 4, this is the
> "maxProcessors" attribute on the <Connector> element in the "server.xml"
> file. When this many requests are already simultaneously active, the
> socket will queue up waiting requests, up to the value specified by the
> "acceptCount" attribute.
>
> With the default values (acceptCount="10" and maxProcessors="75"), this
> means that up to 75 simultaneous requests can be processed (on 75
> individual threads). The 76th through 85th simultaneous requests will be
> queued up inside the socket, waiting for one of the first 75 to
> finish. If there are already 10 requests queued up, any further clients
> will get "connection refused".
>
> I imagine that Tomcat 3.x has something similar on the <Connector>
> element, but I'm not as familiar with the details there.
>
> > can anyone help me with this
> > Venkatesh
> >
>
> Craig
>
>
>
> _________________________________________________________________
> Get your FREE download of MSN Explorer at http://explorer.msn.com/intl.asp
>
>