Request for help to optimize apache setting.

Discussion in 'Apache' started by energetic, Sep 12, 2007.

  1. #1
    my server is.
    P4 3G Hz
    1G ram
    I host more than 80 sites, most of them are inactive.
    Only one of them is very active. it has around 10k unique per day.
    The problem is the apache sometimes with no respond.
    I know it may be the problem of setting. I alway found that there are so many httpd pid process.

    Timeout 10
    KeepAlive On
    MaxKeepAliveRequests 0
    KeepAliveTimeout 2
    MinSpareServers 20
    MaxSpareServers 50
    StartServers 8
    MaxClients 256
    MaxRequestsPerChild 900

    this is my current setting, can anybody help me to optimize it ?
    I need the setting to suit my high traffic server.

    Thanks.
     
    energetic, Sep 12, 2007 IP
  2. hamidof

    hamidof Peon

    Messages:
    619
    Likes Received:
    44
    Best Answers:
    0
    Trophy Points:
    0
    #2
    MaxClients 256 is too high for 1GB of RAM, is that site PHP powered?
    PHP 5 uses at least 16 MB memory per request so 256 * 16 = 4,096 GB!
    I suggest buying more RAM and setting MaxClients to a reasonable number, then if it's PHP powered, install ZEND optimizer and eAccelerator.
     
    hamidof, Sep 13, 2007 IP
  3. energetic

    energetic Well-Known Member

    Messages:
    2,844
    Likes Received:
    55
    Best Answers:
    0
    Trophy Points:
    165
    #3
    Thanks for your advice, I now try to install eAccelerator
     
    energetic, Sep 13, 2007 IP