- Newest
- Most votes
- Most comments
Hello.
server reached pm.max_children setting (5), consider raising it/var/log/php8.1-fpm.log
The number of "pm.max_children" is insufficient, so please increase it.
I think there is a configuration file in "/etc/php-fpm.conf" etc., so please edit it there.
After editing, restart the php-fpm process using the "sudo systemctl restart php-fpm" command.
768 worker_connections are not enough/var/log/nginx/error.log
I think there will be a timeout error.
"worker_connections are not enough" indicates that the number of simultaneous connections is insufficient, so if there are more accesses than can be processed, a timeout error will occur.
I think you need to increase the value of "worker_connections" as mentioned in the stackoverflow answer below.
https://stackoverflow.com/questions/56723449/nginx-error-1024-worker-connections-are-not-enough
Relevant content
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 3 months ago
- AWS OFFICIALUpdated 2 years ago
How can I know the correct numbers to input for the increase, or what is recommended?
I often calculate numbers using the following calculations.
If you are using Linux, you can get the average memory used by the php-fpm process using the following command.
I often set "worker_connections" to about twice the number shown in the error. In your case, I think it would be a good idea to set it to around "1,536". Be careful not to set the number larger than "worker_rlimit_nofile". https://nginx.org/en/docs/ngx_core_module.html#worker_connections
You can check the number of files that can be handled by the OS using the following command.
Therefore, I think it is best to calculate "worker_rlimit_nofile" as follows.