You are viewing a plain text version of this content. The canonical link for it is here.
Posted to modperl@perl.apache.org by Stas Bekman <st...@stason.org> on 2001/03/01 02:28:41 UTC

Re: Apache thrashing my swap...

> On Wed, 28 Feb 2001, Jason Terry wrote:
> > My problem is that recently I have had some users that are getting
> > impatient and hitting the reload/refresh button OFTEN.  In some
> > instances this causes one single person to have over 40 httpd children
> > service JUST them.  This causes my server to start thrashing swap...

See
http://perl.apache.org/guide/debug.html#Handling_the_User_pressed_Stop_

> > Does anybody on this list know of a way to limit the number of
> > connections apache will allow per IP address (before any reverse
> > lookups would be nice)?

You don't want to do that. Think of AOL users who all come through the
same proxy (well a few).

This is not a situation where throttling helps, as with stopping rude
robots. Your purpose it to stop the script on abort, not to limit users.

Also you may want to revise your code to minimize the possibility of users
try to restart the request all the time. See the performance chapter in
the guide.

_____________________________________________________________________
Stas Bekman              JAm_pH     --   Just Another mod_perl Hacker
http://stason.org/       mod_perl Guide  http://perl.apache.org/guide
mailto:stas@stason.org   http://apachetoday.com http://logilune.com/
http://singlesheaven.com http://perl.apache.org http://perlmonth.com/