Community Forums
Connect with us on LinkedIn
+ Reply to Thread
Results 1 to 6 of 6
  1. #1
    Member
    Join Date
    Oct 2010
    Posts
    15

    Default Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    Hello,

    I run one eshopping website + WordPress Blog on a VPS.

    I just notice that on this server (16CPU), MPM_Worker is faster than Prefork.

    But for RAM usage, I have a lot of /usr/bin/php running each 5MB of ram everytimes !

    Memory Used 64.8 %
    Server Load 0.23 (16 cpus)

    My current config is :

    Apache :

    Code:
    TraceEnable Off
    ServerSignature Off
    ServerTokens ProductOnly
    FileETag None
    StartServers 2
    <IfModule prefork.c>
    MinSpareServers 3 
    MaxSpareServers 8
    </IfModule>
    MaxClients 15
    MaxRequestsPerChild 500
    ThreadsPerChild 3
    FCGID :

    Code:
    <IfModule mod_fcgid.so>
            # Maximum number of PHP processes
            MaxProcessCount             4
            # Number of seconds of idle time before a php-cgi process is terminated
            IPCCommTimeout              200
            IdleTimeout                 60
    	 IdleScanInterval		 60
    </IfModule>
    mod_fcgid status:

    Code:
    Total FastCGI processes: 7
    Process name: php5
    
    Pid	Active	Idle	Accesses	State
    32639	443	6	30	Ready
    18131	694	122	95	Ready
    32472	444	135	21	Ready
    Process name: php5
    
    Pid	Active	Idle	Accesses	State
    15955	203	123	10	Ready
    23663	610	122	20	Ready
    15969	201	201	1	Ready
    15960	203	188	4	Ready

    How could I reduce PHP idle ? and PHP footprint ?

    Thanks !
    Last edited by LeGastronome; 11-21-2010 at 09:24 AM.

  2. #2
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default Re: Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    Maybe you are affected by bug 48981
    See https://svn.apache.org/repos/asf/htt.../CHANGES-FCGID
    make sure you run mod_fcgid 2.3.6

  3. #3
    Member
    Join Date
    Oct 2010
    Posts
    15

    Default Re: Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    How could I know the module version ?

    For EasyApache, I just need to change the mod_fcgi.so ?

    Thanks

  4. #4
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default Re: Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    1) you may access a non-existing URL om your server and read module version from error page footer
    2) you may configure /server-status (mod_status), access it and read module versions
    3) you may check in /home/cpeasyapache/src
    Yes compiling and replacing mod_fgcid.so should work

  5. #5
    Member
    Join Date
    Oct 2010
    Posts
    15

    Default Re: Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    Thanks :

    I have this : mod_fcgid/2.3.5

    Could I install it just in changing .so ?

  6. #6
    Registered User
    Join Date
    Sep 2006
    Posts
    4

    Default Re: Apache FCGID MPM_Worker on 512MB + 16CPU VPS

    download 2.3.6, read installation instructions, install
    remove superfluous LoadModule modules/mod_fcgid.so from httpd.conf as you already have it in /etc/httpd/conf/php.conf
    restart apache

Similar Threads & Tags
Similar threads

  1. Replies: 0
    Last Post: 08-12-2009, 04:17 AM
  2. FCGI + mpm_worker
    By petteyg359 in forum cPanel and WHM Discussions
    Replies: 0
    Last Post: 06-23-2009, 09:33 PM
  3. help with mpm_worker setup
    By PPNSteve in forum cPanel and WHM Discussions
    Replies: 1
    Last Post: 01-03-2008, 07:44 PM
  4. EasyApache + MPM_worker?
    By Tony Kanago in forum cPanel and WHM Discussions
    Replies: 2
    Last Post: 08-26-2006, 08:14 AM
Linkedin       Facebook       Twitter       RSS       Flickr       YouTube