Holding F5 on browser overloads whole server

coldplug

Member
Oct 26, 2009
6
0
51
Hello all!

I found an issue with overloading server by simple holding down F5 in browser (flooding with refresh) on joomla website. All four CPU cores go immediately to 100% and average load goes to VERY high number.

So, the question is - what can be done to prevent these types of abusing from happening? In fact I don't know if this is question for Optimization or Security forum, because I'm not sure if my maybe incorrect mysql server configuration is cause of this overload or it is (as I think) just php/CPU issue.

I have csf/lfd installed if that can help to block these types of flood, but also, I think that even without firewall the system should be able to face out this simple load from just one browser. It is VPS running on OpenVZ, 4-core Xeon (Sandy Bridge), full CPU burst available, 2GB ram guaranteed, 4GB in burst.

Thanks for any suggestion.
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
If this is only happening on Joomla, then it would be a Joomla issue. Have you reproduced it on another type of software application?

Of note, you can always set Apache settings for Timeout, KeepAlive Timeout, MaxKeepAliveRequests in WHM > Apache Configuration > Global Configuration area. You could also definitely set up brute force protection using CSF's LFD product, which is a third-party product that we are not affiliated with directly.
 

coldplug

Member
Oct 26, 2009
6
0
51
Thanks!

If this is only happening on Joomla, then it would be a Joomla issue. Have you reproduced it on another type of software application?
Yes it looks like joomla's problem; I will install one fresh joomla and see if that happens also there. But...

I have about 20 accounts there, and I cannot always control what scripts they execute. So of course I would like to do my best to protect the system from unintentional (and intentional) abusing.

Of note, you can always set Apache settings for Timeout, KeepAlive Timeout, MaxKeepAliveRequests in WHM > Apache Configuration > Global Configuration area.
Do you have some recommendation on these so the server could be able to hold loads like this requests flooding better?

Thanks again!
 

cPanelTristan

Quality Assurance Analyst
Staff member
Oct 2, 2010
7,607
43
348
somewhere over the rainbow
cPanel Access Level
Root Administrator
Personally, I prefer not to provide recommendations on Apache settings. You might read the following guide and determine if you consider the advice there helpful:

Apache Performance Tuning

I have a presentation that I did on Apache and PHP Optimization, but that presentation only discusses the default values rather than providing direct recommendations. It is at the following location:

Apache & PHP Optimization | cPanel Video Site