티스토리 뷰
How to Fix Apache Error 'server reached MaxRequestWorkers setting'
노랑파자마 2019. 9. 30. 09:51If you see the following message in your Apache error log:
server reached MaxRequestWorkers setting
This does not mean there is anything wrong with Apache or your Apache MaxRequestWorkers setting. You should not make any changes to Apache.
This message means that one of your apps has slow PHP scripts or is receiving such a large number of requests that your PHP scripts aren't able to answer requests as quickly as they are coming in.
Why This Error Happens
PHP can simultaneously execute a limited number of requests for each app. If a PHP script executes very slowly, even a small amount of traffic can cause this limit to be reached. When this limit is reached and all of an app's PHP processes are busy executing requests, each additional request that comes in to your server is queued by Apache until PHP completes an existing request and is available for another. When the number of queued requests waiting for PHP becomes too large, you see this "server reached MaxRequestWorkers setting" error message.
Identifying a Slow PHP Script
In this situation, you should look at your app's PHP slow log located at:
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.slow.log
where phpX.Y is the version of PHP your app is using, for example php5.6.
This tutorial offers advice on understanding and resolving several different types of slow PHP requests.
Identifying a Large Amount of Traffic to a PHP Script
If you do not see any slow requests, then you should check your app's PHP access log at:
/srv/users/serverpilot/log/APPNAME/APPNAME_phpX.Y.access.log
to see if you are receiving a large number of requests that you do not expect.
Reference: https://serverpilot.io/docs/fix-apache-error-server-reached-maxrequestworkers-setting
'메모로그 > 기타등등' 카테고리의 다른 글
OpenJDK 다운로드 (0) | 2023.02.22 |
---|---|
네이밍룰에 대해서 - Case Style (0) | 2021.04.06 |
Buildship Gradle 2.0 을 사용한 Spring 프로젝트 구성 (0) | 2016.11.22 |
현재 적용된 Syntaxhighlighter 설정. (0) | 2016.07.01 |