• If you are still using CentOS 7.9, it's time to convert to Alma 8 with the free centos2alma tool by Plesk or Plesk Migrator. Please let us know your experiences or concerns in this thread:
    CentOS2Alma discussion

Issue Apache hangs (mod_fcgid) with Debian 7

waterboy

New Pleskian
Hi,

after doing lots of updating, apache tends to hang, with the log showing many

[warn] mod_fcgid: too much processes, please increase FCGID_MAX_APPLICATION​

System info from Plesk:

CPU Intel(R) Xeon(R) CPU E3-1271 v3 @ 3.60GHz (8 core(s))
Version Plesk Onyx v17.0.17_build1700161028.14 os_Debian 7.0
OS Debian 7.11​

This seems to directly address the issue: https://kb.plesk.com/en/130473

The path seems to be valid for Debian 8 only, though (and not sure about the arch). How can I patch my system?

Thanks you :)
 
Hi warerboy,

have you create a ticket to plesk support ?

We have the same issue on a customer server with the same setup

Version Plesk Onyx v17.0.17
17.0.17 Debian 7.0 1700161117.16
OS Debian 7.11

greetings
Carsten
 
You need to find where your files are in debian, i can only help for centos, but apache is apache, its the same.

Find fcgid.conf setup in /etc/httpd/conf.d

Adjust it to your needs, google for what others use and have to say about it. fine-tune over some period of time to see what works the best for your type of websites.

Ours is

Code:
# This is the Apache server configuration file for providing FastCGI support
# via mod_fcgid
#
# Documentation is available at http://fastcgi.coremail.cn/doc.htm

LoadModule fcgid_module modules/mod_fcgid.so

<IfModule mod_fcgid.c>

<IfModule !mod_fastcgi.c>
    AddHandler fcgid-script fcg fcgi fpl
</IfModule>

  FcgidIPCDir /var/run/mod_fcgid/sock
  FcgidProcessTableFile /var/run/mod_fcgid/fcgid_shm

##FcgidIdleTimeout default = 300
   FcgidIdleTimeout 300

##FcgidProcessLifeTime default = 3600
#  FcgidProcessLifeTime 300

##FcgidMaxProcesses default = 1000
#  FcgidMaxProcesses 32

##FcgidMaxProcessesPerClass default = 100
#  FcgidMaxProcessesPerClass 32
#  FcgidMinProcessesPerClass 0
  FcgidConnectTimeout 30
  FcgidIOTimeout 300
  FcgidInitialEnv RAILS_ENV production
  FcgidIdleScanInterval 10
  FcgidMaxRequestLen 1073741824


</IfModule>

## = the default, commented if we use the default but left in there to know it
# = what was originaly there

save and restart apache.

You might want to empty /var/run/mod_fcgid/sock/ from time to time, just to clean up.

AGAIN: these are paths on centos, on debian it might be in an other location.

hope this helps
regards
Jan
 
Thank you - very helpful. I've upped the limit a bit in the conf file and will see if it helps. Not much server load anyway, but only started to happen after the update; so hopefully this fixes the problem.
 
Plesk sometimes overwrites fcgid.conf at an update. Simply get your old back from a backup, restart apache and your good to go (till the next update).

We have monitors in place that mail us when files are changed we don't want changed.

regards
Jan
 
Back
Top