The Community Forums

Interact with an entire community of cPanel & WHM users!
  1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Optimal apache 2 config High traffic site.

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

  1. webcloaker

    webcloaker Member

    Joined:
    Jan 5, 2006
    Messages:
    15
    Likes Received:
    0
    Trophy Points:
    1
    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
    </IfModule>

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

    webofunni Active Member

    Joined:
    May 6, 2007
    Messages:
    27
    Likes Received:
    0
    Trophy Points:
    1
  3. jayh38

    jayh38 Well-Known Member

    Joined:
    Mar 3, 2006
    Messages:
    1,215
    Likes Received:
    0
    Trophy Points:
    36
    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


    jay
     
    #3 jayh38, Jan 14, 2008
    Last edited: Jan 14, 2008
Loading...

Share This Page