Go Back   HowtoForge Forums | HowtoForge - Linux Howtos and Tutorials > Linux Forums > Server Operation

Do you like HowtoForge? Please consider supporting us by becoming a subscriber.
Reply
 
Thread Tools Display Modes
  #1  
Old 22nd March 2010, 01:41
Tipem Tipem is offline
Junior Member
 
Join Date: Jun 2008
Posts: 14
Thanks: 4
Thanked 0 Times in 0 Posts
Default Httpd randomly crashing - high traffic server

Hi there,

At a random time today (not necessarily around peak times) Apache crashed. Nobody on our server (it's privately owned by a couple of people) has changed anything significantly on their web sites (i.e. added new resource intensive features, etc).

On the server status page, it read this:

Code:
37.6 requests/sec - 195.7 kB/second - 5.2 kB/request
32 requests currently being processed, 229 idle workers
___.W.____W_W____W___W___W..__C______..W_._CW_____W________W_W_C
___.___________W_.________._______._.._C_C____W.W.____W_______W_
_____.__.____________._C_.__C__._________.__.__________________W
.____._.______W_________._____._________WC.W_____.....__CW____._
___________W.W____._________.________.____._....................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
................................................................
Question: should there be that many "W"s? Is my Apache configuration optimal? I do not have KeepAlive on. Should it be on? We have like 15 gigs of memory and plenty of space + CPU (8 cores), so I doubt it's because the server simply can't handle the requests...

Apache conf:
  • server limit: 1024
  • max clients: 300
  • start servers: 180
  • spare servers (min): 120
  • spare servers (max): 220
  • max requests / server: 9000
  • timeout: 15
  • keepalive: off
  • keepalive requests: 100
  • keepalive timeout: 15

My control panel server graph jumped like this:



So, could this be explained simply by a normal influx of traffic? I am just not sure what's going on here... but I can't keep having Apache crashing.

I hope that this is enough information; feel free to ask any clarifying questions if I haven't provided enough. This is just so random.

Thanks in advanced.
Reply With Quote
Sponsored Links
  #2  
Old 22nd March 2010, 11:21
macmillaninc macmillaninc is offline
Member
 
Join Date: Dec 2008
Location: Georgetown, KY
Posts: 31
Thanks: 13
Thanked 0 Times in 0 Posts
 
Default

Looks like DDoS attack to me. (Dedicated Denial of Service). Check you web log for IP addresses that are attempting to access the server. If you locate these IPs, then reject them with;

route add -host XXX.XXX.XXX.XXX reject
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Centos5.4/ISPConfig 3--Virtual site not working MichaelCaditz Installation/Configuration 25 25th March 2011 11:37
Webmail problems with only one domain? compner Installation/Configuration 14 16th February 2010 16:59
Help! Why do I see message about Apache, CPanel & WHM. I don't run cpanel! websissy Installation/Configuration 3 18th November 2008 22:16
Can't start apache Musty Server Operation 12 9th March 2008 13:58
The Perfect Setup Suse 9.3 - Postfix problems new_bee05 HOWTO-Related Questions 20 25th November 2005 02:30


All times are GMT +2. The time now is 06:33.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.