I have a dedicated apache server with high resources.
- RAM - 64GB
- Cores - 20
- with CentOS 6.7 x64
and
Image - FCGI statistics with phpinfo
I run Magento application with MySQL as database engine which is also deployed on a separate highly resourced dedicated server.
Website was working fine since a month, but suddenly it has started throwing error though it is not under load/traffic-
Image - Server Load statistics with HTOP
mod_fcgid: can't apply process slot for /var/www/cgi-bin/cgi_wrapper/cgi_wrapper
with 503 service temporary unavaiable error on browser.
So, I followed below steps to get rid of it(but none of them actually worked) :
I increased value of "FcgidMaxProcesses" in fcgid.conf and restarted apache, but it didn't make any difference. Error are still there.
I checked file ownership and permission of
755 apache apache /var/run/mod_fcgid/sock
644 root root /var/run/mod_fcgid/fcgid_shmRebooted server, expecting existing FCGI processes to get flushed and process count to start with 0 so process count will not hit FcgidMaxProcesses for some days
Below is my fcgid.conf file.
I know timeout values are way too high but I guess it has nothing to do with this error as page load time is around 4-5 seconds.
LoadModule fcgid_module modules/mod_fcgid.so
<IfModule !mod_fastcgi.c>
AddHandler fcgid-script fcg fcgi fpl
</IfModule>
FcgidIPCDir /var/run/mod_fcgid/sock
FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm
FcgidProcessLifeTime 120
FcgidIdleTimeout 30
FcgidIdleScanInterval 5
FcgidMaxRequestsPerProcess 300
FcgidMaxProcesses 1200
FcgidIOTimeout 18000
FcgidBusyTimeout 18000
size of /usr/bin/php-cgi process is on an average 70MB
My question is why increasing value of FcgidMaxProcesses doesn't make any difference? Is there any other configuration file that needs to be altered?
I have parallel plesk installed. Digging /etc folder, I came across another services which may, I guess, affect fcgi/FastCGI operations:
- php-fpm
- sw-engine-fpm
Is Fcgid dependent on any such service to limit its processes? How do I detect that?
Please make me aware of the reality.
Thanks in advance.