The Problem: Php fpm restarting when the pool is busy all connections are closing and gain staring.
Beware of increasing php fpm child process
|max active processes||27|
pm.max_children = 250
pm.start_servers = 12
pm.min_spare_servers = 12
pm.max_spare_servers = 150 (so there 32 idles process eating memory without any connection /request)
Php max memory limit set in php.ini is the maximum memory limit for each process.
php fpm seems busy solution:
increase max spare servers also max children
Problem 2 serious: php fpm reached max children
Solution: for php fpm pm max children reached
config test for php -fpm configuration syntax errors
reload php fpm
nginx php-fpm child exited with code 0
when pm max requests sets low..
pm.max_requests = 500
Php fpm and and nginx keep alive (for upstream servers)
FAQS on php fpm server busy
php-fpm exiting bye-bye causes
- when max children reached
- When fpm pool busy..