Optimal apache 2 config High traffic site.


Jan 5, 2006
Hello everyone,

Currently we have a very high traffic website,

We are running apache 2

Our server specs are

Dual quad core zeon 2.0
8 gigs or ram

500 gig hard drive

Currently we use around 700 gigs of bandwith out daily
and around 50 gigs in daily

Most of the time our site runs pretty smoothly but at times we have CPU spikes and the site becomes unresponsive

Here is our current worker settings from httpd.conf
<IfModule worker.c>
StartServers 2
MaxClients 300
MinSpareThreads 50
MaxSpareThreads 100
ThreadsPerChild 64
MaxRequestsPerChild 4000

What if anything can we go from here to get more performance from apache?


Well-Known Member
Mar 3, 2006
What is your load looking like when things are running smoothly?

With high traffic sites there are many things that could cause your spikes and load issues such as email, log parsing, mysql or other things pop up at times. I doubt apache has a performance problem but there is no way to tell for sure without more information. I also have many high traffic servers pumping out 4-6 TB monthly as well.

Also try increasing your max clients to 500, 300 is a bit low for a high traffic box and check unique connections for any aggressive users.

overall connections
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | wc -l

overall per IP address
netstat -ntu | awk '{print $5}' | cut -d: -f1 | sort | uniq -c | sort -n

Last edited: