Please whitelist cPanel in your adblocker so that you’re able to see our version release promotions, thanks!

The Community Forums

Interact with an entire community of cPanel & WHM users!

Optimal apache 2 config High traffic site.

Discussion in 'EasyApache' started by webcloaker, Jan 12, 2008.

  1. webcloaker

    webcloaker Member

    Jan 5, 2006
    Likes Received:
    Trophy Points:
    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?
  2. webofunni

    webofunni Active Member

    May 6, 2007
    Likes Received:
    Trophy Points:
    Stop hovering to collapse... Click to collapse... Hover to expand... Click to expand...
  3. jayh38

    jayh38 Well-Known Member

    Mar 3, 2006
    Likes Received:
    Trophy Points:
    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

    #3 jayh38, Jan 14, 2008
    Last edited: Jan 14, 2008

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice