Hi @Alec Dhuse ,
Thanks for the question. You're correct the default max_children setting is 20. what version of PHP are you using?
Based on the solution found here, "you need to find your php-fpm.conf or www.conf depending on what version of PHP-FPM you have installed. for example edit /etc/php/7.0/fpm/pool.d/www.conf. You’ll want to look for the following settings and make adjustments based on your server specs:
[php-fpm-pool-settings]
pm = dynamic
pm.max_children = 25
pm.start_servers = 10
pm.min_spare_servers = 5
pm.max_spare_servers = 20
pm.max_requests = 500
Depending on the name of your service, you can try on of the following:
sudo systemctl restart php-fpm
sudo systemctl restart php7.0-fpm
the following command will help us to determine the memory used by each (PHP-FPM) child process:
ps -ylC php-fpm --sort:rss
You can check an average memory usage by single PHP-FPM process with this command:
ps --no-headers -o "rss,cmd" -C php-fpm | awk '{ sum+=$1 } END { printf ("%d%s\n", sum/NR/1024,"M") }'
Hope that helps. Please let us know if you have further questions.
Thanks,
Grace
------------------------------------------------------------------------------------------------------------------------------
--If the reply is helpful, please Upvote and Accept as answer--