Apache is not responding: fork: Unable to fork new process

Created:

2017-01-04 21:10:30 UTC

Modified:

2017-08-08 13:28:55 UTC

0

Was this article helpful?


Have more questions?

Submit a request

Apache is not responding: fork: Unable to fork new process

Applicable to:

  • Plesk for Linux

Symptoms

Apache becomes unresponsive. The following error can be found in /var/log/apache2/error.log file:

[Wed Jan 04 08:49:27.701388 2017] [mpm_prefork:error] [pid 12526] (12)Cannot allocate memory: AH00159: fork: Unable to fork new process

Cause

Too high values of MaxRequestWorkers and ServerLimit directives.

Resolution

  1. Decrease the MaxRequestWorkers limit in /etc/apache2/mods-enabled/mpm_prefork.conf file.

    Note: ServerLimit directive (from the main /etc/apache2/apache2.conf Apache configuration file) should have the same or higher value that MaxRequestWorkers directive.

  2. Restart Apache service:
    # systemctl restart apache2

Additional Information

#214529205 - Apache keeps going down: server reached MaxRequestWorkers setting

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