Report this

What is the reason for this report?

PHP5-FPM crashing: "server reached pm.max_children setting" (Ubuntu 14 - LEMP)

Posted on February 2, 2015

My WordPress droplet, 512gb/Ubuntu14/Swap/LEMP/never gave a problem. From today PHP5-FPM writes this message in /var/log/upstart/php5-fpm.log:

WARNING: [pool www] server reached pm.max_children setting (5), consider raising it

So after reading, I’ve been increasing this size to 30 in /etc/php5/fpm/pool.d/www.conf but still writes the error, now:

server reached pm.max_children setting (30)

What’s the reason this is happening now? It hasn’t been a high traffic lately, and $free shows 200mb free memory.



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

Someone could do a good job for the humanity and answer this! :)

Is this even a problem? What is this warning?

Having the same problem. I also increase the pm.max_children but it doesn’t fixed the problem.

Hi, So you did not describe what kind of server Nginx was hosting. If it is a wordPress that is exposed to the world, then my guess the script-kiddies are slamming you with login requests and/or searching for other WP potential exploits.

You should go back to your Nginx logs and see where all the traffic is going to. You can then address them with Nginx rate-limits. (See : https://www.nginx.com/blog/rate-limiting-nginx/) There you can put realistic limits and not allow them to hit your server unfettered.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.