Apache optimization help

Discussion in 'Apache' started by yotis, Jul 20, 2010.

  1. #1
    Hello,

    I have read on this thread showthread.php?t=23044 (sorry, I cannot post links) on forums.digitalpoint.com, that the following setting would be good enough to optimize the Apache server:

    Timeout 50
    KeepAlive On
    MaxKeepAliveRequests 120
    KeepAliveTimeout 10
    MinSpareServers 10
    MaxSpareServers 20
    StartServers 16
    MaxClients 125
    MaxRequestsPerChild 5000

    My concern is that the post is from 2005. Are this settings still good enough or you have a better suggestion?
    Traffic for the webpages sustained by my Apache is in normal limits, I would say in average up to 6000 views / day (page views, not unique visitors).

    Thank you!
     
    yotis, Jul 20, 2010 IP
  2. madaboutlinux

    madaboutlinux Member

    Messages:
    250
    Likes Received:
    7
    Best Answers:
    2
    Trophy Points:
    43
    #2
    The settings entirely depends on the traffic your websites receive and does not relate to how old the thread is... With 6000 views per day, I would say increase MaxClients to around 500 or may be 800 and leave the other values as it is. It should do the needful. Post here with the Apache error logs if you run into problems.
     
    madaboutlinux, Jul 20, 2010 IP
  3. yotis

    yotis Peon

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #3
    Thank you! I will try your settings and return here with questions in case that something is going wrong! BTW, at which memory consumption (aprox.) I should expect with 500 clients?

    Cheers!
     
    yotis, Jul 21, 2010 IP
  4. anands

    anands Well-Known Member

    Messages:
    436
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    120
    #4
    Apache optimization varies with respect to the usage and fine tuning needs to be done. what website you are hosting?
     
    anands, Jul 22, 2010 IP
  5. CoderJosh

    CoderJosh Peon

    Messages:
    45
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #5
    Choosing the right settings also depends on your server hardware. For example, if you allow too many concurrent Apache processes, you might run out of memory in case of a traffic spike. So in order to give you recommendations, you should let us know about your server.
     
    CoderJosh, Aug 2, 2010 IP
  6. Alexandros1

    Alexandros1 Peon

    Messages:
    332
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #6
    MaxRequestsPerChild 400
    You can try lowing this value a bit more to test if it helps to reclaim needed memory. But you will be rolling the bulder uphill with apache.
    The best advise would be to move away from using Plesk - Apache is very bloated for file serving. There is quite a few better systems that can do serving of files very much with lower overheads.
     
    Alexandros1, Aug 2, 2010 IP