Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have website with 250000 Unique visitor per day with 2000 active online user and site are on dedicated server. everything is fine but right now i noticed there are sudden CPU usage increase By httpd [i seen using TOP -c] and after few minutes load come to down. so i want to know how can i fix this issue. My regular load is 0.50 and when sudden load come its 2.5 OR 3.5 OR more.

Server : Apache 2.2.22

My httpd.conf:

Timeout 30
StartServers 12
MinSpareServers 12
MaxSpareServers 16
ServerLimit 1024
MaxClients 1024
MaxRequestsPerChild 20000
KeepAlive Off
KeepAliveTimeout 5
MaxKeepAliveRequests 50

SERVER CPU: Intel Xeon E3-1265L [8 Threads]


My website on WordPress and using customized theme.

So please let me know how can i resolve this issue.

I just check there are lots of TIME_WAIT connections.

I'm using the following command to check netstat -tan |grep :80|grep TIME_WAIT |wc -l

Result = 4551

Is this normal?


share|improve this question
"everything is fine but right now" <-- Then there is no issue?? What makes you think that "high load" would be a problem? Wordpress is somewhat known for being a resource hog (and security problem). Also, httpd is a generic name for a webserver, you never mention which web server (eg Apache, nginx, Lighttp, Cherokee...) – Chris S Jan 23 '13 at 14:26
When this happens next, do a netstat -na and dump to a text file, then check the number of connections to your webserver. You might also want to check whether there's any log rotation or other disk-intensive cron jobs going on at the same time. – Jenny D Jan 23 '13 at 14:38

You have an 8 thread processor. I suspect this is a 4 core CPU with Hyperthreading.

You don't need to worry until your Load Average is over 8.00.

You probably just got a few thousand hits by being featured on some website like HackerNews or Slashdot. You might want to consider optimising your site by offloading some static objects to a CDN, or by using Varnish as a reverse proxy between Apache and the rest of the internet.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.