thanks Craig,
I shall check this out ..
But I am working on Tomcat 3.2.2 ..
I shall find out the details abt this
thanks
Venkatesh
.......Phir Bhi Dil Hai Hindustani
Venkatesh Sangam,
910 E, Lemon Street,
Apt #7,
Tempe, AZ, 85281
Ph:1-480-736-9392
----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