Help with apache mpm worker configuration

Discussion in 'Apache' started by applehost, Oct 8, 2012.

  1. #1
    Hi everyone,

    I have always used apache mpm prefork and I've always been able to configure my servers without major problems. The best thing is that you can find a LOT of information and tips about the prefork module.

    Recently I've been suggested to switch to the worker module for one of my big servers (Intel i7-920 quadcore, 24gb DDR3). The problem is that I have no idea how to configure it!

    Here's the current config I've set up by reading the internet, considering that in peak moments we get 1800-2000 concurrent users

    ThreadLimit 200
    StarServers 8
    MaxClients 2000
    MinSpareThread 25
    MaxSpareThread 75
    ThreadsPerChild 200
    MaxRequestsPerChild 0

    Unfortunately it doesn't work out. When I reach 1600-1700 concurrent users on the website, the response time drops and if I try to reach the website it says "Waiting..." for a lot of seconds before sending out the page.

    During this peak moments Apache error log shows no problems, cpu is around 70% us, load average around 70 and we're not swapping. Anyone can help? Thanks a lot.
     
    applehost, Oct 8, 2012 IP
  2. RHS-Chris

    RHS-Chris Well-Known Member

    Messages:
    1,007
    Likes Received:
    35
    Best Answers:
    10
    Trophy Points:
    150
    #2
    Hello there,

    What PHP handler are you using? Do you have a lot of MySQL driven websites on the server as well?

    Chris
     
    RHS-Chris, Oct 8, 2012 IP