optimize apache 512ram

Discussion in 'Apache' started by vaggos, Apr 15, 2007.

  1. #1
    Greetings,

    Can you please suggest some average optimized settings for apache? The server 's cpu is quite busy and it has 512ram.

    Currently it's like:

    StartServers 16
    MinSpareServers 10
    MaxSpareServers 20
    ServerLimit 256
    MaxClients 125
    MaxRequestsPerChild 5000
    MaxKeepAliveRequests 120
    KeepAliveTimeout 10


    Also it uses Mysql but there is nothing special in my.cnf other than

    set-variable = max_connections=300
    set-variable = wait_timeout=120
    set-variable = max_user_connections=300

    Thanks a lot
     
    vaggos, Apr 15, 2007 IP
  2. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You can get some idea from my article here : VPS optimization

    Simply a guide for 128-256 MB RAM...adjust accordingly.
     
    agnivo007, Apr 15, 2007 IP
    vaggos likes this.
  3. vaggos

    vaggos Active Member

    Messages:
    3,618
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    90
    #3
    Excellent guide thanks!
     
    vaggos, Apr 15, 2007 IP
  4. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #4
    well, the mysql settings are optimized for very low specification servers...so better dont change them.

    Also take advice of other learned friends here... ;)
     
    agnivo007, Apr 15, 2007 IP
  5. vaggos

    vaggos Active Member

    Messages:
    3,618
    Likes Received:
    39
    Best Answers:
    0
    Trophy Points:
    90
    #5
    Ok but isn't MaxClients 20 too low also for apache? Thanks
     
    vaggos, Apr 15, 2007 IP
    agnivo007 likes this.
  6. agnivo007

    agnivo007 Peon

    Messages:
    4,290
    Likes Received:
    289
    Best Answers:
    0
    Trophy Points:
    0
    #6
    make it higher ;)

    Actually, optimization is different for purpose, site nature and traffic.
     
    agnivo007, Apr 15, 2007 IP