If you are encountering this error it does not mean that anything is wrong with your Apache or Apache MaxRequestWorkets settings. You can not make any changes to Apache. This error means that one of your apps has a slow PHP script or receiving a huge number of requests that your PHP script is unable to answer requests as quickly as they are coming.
title: "originally posted here 👇"
canonical_url: https://kodlogs.com/blog/1957/reached-maxrequestworkers-setting-consider-maxrequestworkers
Reason for this error:
PHP can execute a limited number of requests for each app. If the PHP script is executing very slowly even with a small amount of traffic then your limit has been reached. When the number of queued requests for PHP becomes too large then you see “Server reached MaxRequestWorkers setting” error message.
Identifying a slow PHP script:
In this situation, look at your apps PHP slow log that is located at;
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.slow.log
Here X.Y is the version of PHP on which your app is running for example php5.6.
Identify a large amount of traffic to a PHP script:
If you are unable to see any slow requests, then you need to check your apps PHP access log at;
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.access.log
This will be used when you are receiving a large number of requests that you cannot expect.
Top comments (0)