Results 1 to 2 of 2

Thread: optimisation for mpm worker and mod_fcgi

  1. #1
    Member
    Join Date
    Sep 2011
    Posts
    16
    cPanel/WHM Access Level

    Website Owner

    Default optimisation for mpm worker and mod_fcgi

    whilst i await cPanel to integrate php-fpm (or manage to get it working, has anyone else managed it?)

    I am using mpm worker and mod_fcgi and found the default settings very quickly ate up all the ram through processes.

    I have a number of sites under different usernames which causes numerous problems with mod_fcgi due to each php process on each account spawning a new mod_fcgi process.

    Through reading up various other peoples configs i have arrived at the following.

    my current settings in pre virtualhost include are:

    <IfModule mpm_worker_module>
    ServerLimit 16
    StartServers 2
    MaxClients 300
    MinSpareThreads 5
    MaxSpareThreads 75
    ThreadsPerChild 25
    MaxRequestsPerChild 700
    TimeOut 45
    </IfModule>

    <IfModule mod_fcgid.c>
    FcgidMaxRequestsPerProcess 500
    FcgidMaxProcesses 360
    FcgidMaxProcessesPerClass 3
    FcgidMinProcessesPerClass 0
    FcgidConnectTimeout 30
    FcgidIOTimeout 300
    FcgidFixPathinfo 1
    FcgidIdleTimeout 30
    FcgidIdleScanInterval 10
    FcgidBusyTimeout 120
    FcgidBusyScanInterval 90
    FcgidErrorScanInterval 60
    FcgidZombieScanInterval 3
    FcgidProcessLifeTime 120
    </IfModule>


    This seems to work quite well for the front end of my wordpress sites, which i have cached via Varnish, but via the backend of wordpress i often have to wait until a ProcessLifeTime has been completed and fcgi can spawn a new process.

    I believe this setup is a waste in regards to using APC with php due to the fact that each site's opcode cache is located separate from the other sites opcode cache, and of course it only lives for 2 minutes at a time.

    The server has 8cores and 8gb of ram to play with. Ideally i would love to use php-fpm so each site can use the same opcode cache (it should help a lot considering every site is wordpress?) but my progress in using php-fpm has hit a brick wall.

  2. #2
    Member
    Join Date
    Sep 2011
    Posts
    16
    cPanel/WHM Access Level

    Website Owner

    Default Re: optimisation for mpm worker and mod_fcgi

    no one has any suggestions on the optimisation?

Similar Threads

  1. where is MPM Worker Setting?
    By Massoud in forum Optimization
    Replies: 7
    Last Post: 05-26-2011, 11:38 PM
  2. mod_fcgi
    By chposter in forum CloudLinux
    Replies: 6
    Last Post: 05-13-2011, 07:47 AM
  3. php-fcgid+eaccelerator+custom php.ini+apache2-mpm-worker= segfault?
    By internetfab in forum cPanel & WHM Discussions
    Replies: 2
    Last Post: 01-30-2011, 04:25 PM
  4. mpm-worker forces --disable-cgi PHP flag
    By pricejn2 in forum cPanel & WHM Discussions
    Replies: 0
    Last Post: 11-13-2010, 01:28 PM
  5. Apache MPM Prefork (default) or Worker for I7?
    By chrismfz in forum Optimization
    Replies: 2
    Last Post: 06-06-2010, 12:34 PM