Jump to content

Apache server killed by stapler...


bigsid

Recommended Posts

Hi,

 

I have a RedHat Linux 4 box running a pretty standard Apache 2 RPM installation. I'm running SMF forum with PHP 5 and MySQL 4. The other day we lost the webserver as in it went down, or at least very slow. When we checked on the server that runs Apache the load had hit about 50 and we had nearly 200 zombie processes...

 

Anyway, today it turns out that this was due to a stapler falling off someones monitor stand and landing on their F5 key whilst they were on our website. The constant page refreshes killed the server and this was from just one client!

 

We recreated the problem today (again using the stapler for authenticity :-) and saw the same problem.

 

How can I prevent this sort of client behaviour trashing our server in the future (apart from going round the office confiscating staplers)?

 

Thanks - Sid

Link to comment
https://forums.phpfreaks.com/topic/40197-apache-server-killed-by-stapler/
Share on other sites

idk if u can use this:

http://httpd.apache.org/docs/1.3/mod/core.html#maxrequestsperchild

 

or as an idea:

 

maybe you can trap the F5 key with javascript... that is to say, it will detect if its been pressed, but if exceeds 'x' time then redirect to about:blank

 

:shrugs: maybe?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.