Apache MPM's

Discussion in 'Apache' started by Will.Spencer, Apr 12, 2006.

  1. #1
    I'm using the prefork MPM and considering switching to the worker MPM.

    Has anyone here played with the worker MPM yet?
     
    Will.Spencer, Apr 12, 2006 IP
  2. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #2
    I gave it a very quick performance test a few months ago, it seemed comperable to the prefork MPM under Linux 2.6 once some tuning had been done on the prefork config. I decided at this point it wasn't worth the switch.

    There are I believe still question marks as to whether or not PHP is properly thread safe yet - if it's not you're going to get threads randomly restarting.
     
    forkqueue, Apr 15, 2006 IP
  3. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #3
    That's good to know, because I'm running quite a bit of PHP code on this server.

    What tuning have you done with the prefork MPM?

    I've edited StartServers, MinSpareServers, MaxSpareServers, and MaxClients.

    Now I'm thinking that I should look more deeply into tuning Apache.
     
    Will.Spencer, Apr 16, 2006 IP
  4. forkqueue

    forkqueue Guest

    Messages:
    401
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #4
    The same but additionally I upped MaxRequestsPerChild to 100000 and KeepAliveTimeout to 30.
     
    forkqueue, Apr 17, 2006 IP
  5. Will.Spencer

    Will.Spencer NetBuilder

    Messages:
    14,789
    Likes Received:
    1,040
    Best Answers:
    0
    Trophy Points:
    375
    #5
    My httpd.conf came default with MaxRequestsPerChild set to zero. I am guessing that means "unlimited."
     
    Will.Spencer, Apr 19, 2006 IP