logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Apache View previous topic :: View next topic
Reply to topic   Topic: Limit the number of requests on Apache 2.2
Author
oziworld



Joined: 06 Aug 2006
Posts: 7

PostPosted: Mon 29 Jan '07 22:03    Post subject: Limit the number of requests on Apache 2.2 Reply with quote

We would like to limit the number of requests we get per minute to our webserver.

Using Apache how can this be done. For example we have some clients running scripts against our webserver and too many requests are happening at once from them and therefore killing our webserver.

How can we limit the total number of requests per minute and discard the rest?

We have looked up the following and not sure if it helps or how to use it in the context of the above?


Example we probably only want to allow say 6 requests per minute to our webserver and the rest should be discarded or put in a queue.

Please help.

# ThreadsPerChild
# MaxRequestsPerChild
#MaxClients
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7373
Location: Germany, Next to Hamburg

PostPosted: Mon 29 Jan '07 22:38    Post subject: Reply with quote

MaxClients won't work under Windows

http://httpd.apache.org/docs/2.2/mod/core.html#maxkeepaliverequests
Back to top
oziworld



Joined: 06 Aug 2006
Posts: 7

PostPosted: Mon 29 Jan '07 23:39    Post subject: Reply with quote

To confirm are you saying all we need to do is add

MaxKeepAliveRequests to the value 6 and is the keepalive automatically on? or do we need to explicitly set it to on?
Back to top
oziworld



Joined: 06 Aug 2006
Posts: 7

PostPosted: Wed 07 Feb '07 4:08    Post subject: Reply with quote

Can anyone help?
Back to top
VoodooMill



Joined: 11 Jan 2007
Posts: 60

PostPosted: Thu 08 Feb '07 20:47    Post subject: Reply with quote

oziworld,

On Windows you can set ThreadsPerChild to 6 and that will allow no more than 6 simultaneous connections to your server. It's not a limit to 6 per minute like you were asking, but it will keep the connections limited to a max of 6 at any given time.
Back to top


Reply to topic   Topic: Limit the number of requests on Apache 2.2 View previous topic :: View next topic
Post new topic   Forum Index -> Apache