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.

Help: I need some apache optimization advice

Discussion in 'EasyApache' started by Snowman30, Feb 10, 2005.

  1. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    We have a 2.4Ghz server with 2Gb of ram onboard that we are having troubles with.

    The server contains one site which does around 600Gb a month of traffic and is runnign CPanel and has a 100Mbit connection

    The server itself runs fine and 99% of the time, loads are low, however the website itself is very slow to get into.

    I am assuming apache needs further tweaking

    I currently have the following settings:

    Timeout 300
    KeepAlive Off
    MaxKeepAliveRequests 50
    KeepAliveTimeout 15
    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5
    MaxClients 300
    MaxRequestsPerChild 0


    Im wondering if this would be correct or if adjusting it would help?

    any suggestions?
     
  2. chirpy

    chirpy Well-Known Member

    Joined:
    Jun 15, 2002
    Messages:
    13,475
    Likes Received:
    20
    Trophy Points:
    38
    Location:
    Go on, have a guess
    I would have suggested turning off KeepAlives, but you already have that. You could try increasing these to in tandem:

    MinSpareServers 5
    MaxSpareServers 10
    StartServers 5

    However, I doubt that would make a huge difference. Does this site use a MySQL backend? If so, you should enable a query cache which could help significantly:
    http://www.databasejournal.com/features/mysql/article.php/3110171
     
  3. Snowman30

    Snowman30 Well-Known Member
    PartnerNOC

    Joined:
    Apr 7, 2002
    Messages:
    681
    Likes Received:
    0
    Trophy Points:
    16
    cPanel Access Level:
    DataCenter Provider
    No databases running just php and html pages.

    I'll try playing around with the settings
     
  4. daveh901

    daveh901 Registered

    Joined:
    Jul 9, 2003
    Messages:
    4
    Likes Received:
    0
    Trophy Points:
    1
    Try:

    MaxClients 100
    MaxRequestsPerChild 1000
     
Loading...

Share This Page