Websites are slow and a warning appears in logs: mod_fcgid: ap_pass_brigade failed

Created:

2016-11-16 13:11:36 UTC

Modified:

2017-08-16 17:11:51 UTC

8

Was this article helpful?


Have more questions?

Submit a request

Websites are slow and a warning appears in logs: mod_fcgid: ap_pass_brigade failed

Applicable to:

  • Plesk 12.5 for Linux

Symptoms

Websites are slow and the following warning is shown in /var/www/vhosts/example.com/logs/error_log :

     mod_fcgid: ap_pass_brigade failed in handle_request_ipc function, referer: http://www.domain.com/

Cause

  1. Low FcgidMaxRequestsPerProcess value in mod_fcgid configuration file:
        # grep -r FcgidMaxRequestsPerProcess /etc/httpd/*
    /etc/httpd/conf.d/fcgid.conf: FcgidMaxRequestsPerProcess 0
  2. PHP script executing taking too long and the browser is re-establishing connection to the web server.

Resolution

For cause 1:

  1. Set FcgidMaxRequestsPerProcess parameter to 500 in /etc/httpd/conf.d/fcgid.conf (server-wide setting), or in Subscriptions > example.com > Apache&Nginx Settings > Additional Apache directives (domain-wide setting):

    <IfModule mod_fcgid.c>
    FcgidMaxRequestsPerProcess 500
    </IfModule>
  2. Reload Apache configuration:

    # service httpd reload

For cause 2:

This warning could be ignored as it does not cause website slow performance.

The interaction between the PHP, mod_fcgid and Apache is working well.

Additional info

Websites are loading very slowly: can't apply process slot

Have more questions? Submit a request
Please sign in to leave a comment.