You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@httpd.apache.org by Ed Cooley <ec...@strategy5.com> on 2004/12/01 23:19:28 UTC

[users@httpd] holding down F5/refresh key overloads the server

We are having server problems where a crazy user hold down the refresh key
to refresh a page and the browser sends 20 or 30 requests that are exactly
the same.  Apache queues them all and the server gets overloaded.

Is there any configuration for apache to stop or control this?  

Thanks,
Ed


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


RE: [users@httpd] holding down F5/refresh key overloads the server

Posted by Ed Cooley <ec...@strategy5.com>.
My users are using a database application that can be pretty system
intensive on some pages with a lot of detail.  Some pages require 1000+
database reads which fire off a database server thread.  Normally they
process quickly enough to not degrade performance but we have 300-400 users
on the server so there is a base load already.

Thanks for the pointer to MaxKeepAliveRequests

---
Ed Cooley

-----Original Message-----
From: parviz [mailto:dev@nikasolutions.net] 
Sent: Wednesday, December 01, 2004 8:12 PM
To: users@httpd.apache.org
Subject: Re: [users@httpd] holding down F5/refresh key overloads the server

Is he using keep-alive. Try this:

MaxKeepAliveRequests directive 
Syntax: MaxKeepAliveRequests number 
Default: MaxKeepAliveRequests 100 
Context: server config 
Status: core 
Compatibility: Only available in Apache 1.2 and later. 

The MaxKeepAliveRequests directive limits the number of requests allowed
per connection when KeepAlive is on. If it is set to "0", unlimited
requests will be allowed. We recommend that this setting be kept to a
high value for maximum server performance. In Apache 1.1, this is
controlled through an option to the KeepAlive directive.


are you sure those 20/30 requests are overloading your server??  that
doesnt make sense to me. Any server with enough memory and average cpu
speed should be able to handle way more connections than that.

Parviz


On Wed, 2004-12-01 at 14:19, Ed Cooley wrote:
> We are having server problems where a crazy user hold down the refresh key
> to refresh a page and the browser sends 20 or 30 requests that are exactly
> the same.  Apache queues them all and the server gets overloaded.
> 
> Is there any configuration for apache to stop or control this?  
> 
> Thanks,
> Ed
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
> 


---------------------------------------------------------------------
The official User-To-User support forum of the Apache HTTP Server Project.
See <URL:http://httpd.apache.org/userslist.html> for more info.
To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
   "   from the digest: users-digest-unsubscribe@httpd.apache.org
For additional commands, e-mail: users-help@httpd.apache.org


Re: [users@httpd] holding down F5/refresh key overloads the server

Posted by parviz <de...@nikasolutions.net>.
Is he using keep-alive. Try this:

MaxKeepAliveRequests directive 
Syntax: MaxKeepAliveRequests number 
Default: MaxKeepAliveRequests 100 
Context: server config 
Status: core 
Compatibility: Only available in Apache 1.2 and later. 

The MaxKeepAliveRequests directive limits the number of requests allowed
per connection when KeepAlive is on. If it is set to "0", unlimited
requests will be allowed. We recommend that this setting be kept to a
high value for maximum server performance. In Apache 1.1, this is
controlled through an option to the KeepAlive directive.


are you sure those 20/30 requests are overloading your server??  that
doesnt make sense to me. Any server with enough memory and average cpu
speed should be able to handle way more connections than that.

Parviz


On Wed, 2004-12-01 at 14:19, Ed Cooley wrote:
> We are having server problems where a crazy user hold down the refresh key
> to refresh a page and the browser sends 20 or 30 requests that are exactly
> the same.  Apache queues them all and the server gets overloaded.
> 
> Is there any configuration for apache to stop or control this?  
> 
> Thanks,
> Ed
> 
> 
> ---------------------------------------------------------------------
> The official User-To-User support forum of the Apache HTTP Server Project.
> See <URL:http://httpd.apache.org/userslist.html> for more info.
> To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org
>    "   from the digest: users-digest-unsubscribe@httpd.apache.org
> For additional commands, e-mail: users-help@httpd.apache.org
> 
>