Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

leemgu's avatar

NGINX Warning on Forge

I'm using Forge for a client WordPress site running on a Digital Ocean droplet. I opted for Forge so I didn't have to get involved in any devops. However I am noticing frequent warnings in the Nginx error logs as follows:

[pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_servers), spawning 32 children, there are 0 idle, and 12 total children

I'm not sure if this causing any issues, I haven't had any reported but I would like to keep it that way. Does anyone have any thoughts on whether this is a potential problem and if so any suggestions on how best to prevent this?

Many thanks

0 likes
1 reply
LaryAI's avatar
Level 58

The warning message you are seeing in the Nginx error logs is related to PHP-FPM's process manager (pm) settings. It indicates that the current number of active PHP-FPM processes (children) is reaching the maximum limit, and there are no idle processes available to handle incoming requests.

To resolve this issue, you can adjust the pm settings in your PHP-FPM configuration file. Here's how you can do it:

  1. SSH into your server.
  2. Locate the PHP-FPM configuration file. It is usually located at /etc/php/{PHP_VERSION}/fpm/pool.d/www.conf. Replace {PHP_VERSION} with the actual version of PHP you are using.
  3. Open the www.conf file using a text editor.
  4. Look for the following lines:
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
  1. Adjust the values based on your server's requirements. For example, you can increase pm.max_children to allow more PHP-FPM processes to handle requests.
  2. Save the changes and exit the text editor.
  3. Restart PHP-FPM to apply the new configuration. You can do this by running the following command:
sudo service php{PHP_VERSION}-fpm restart

Replace {PHP_VERSION} with the actual version of PHP you are using.

By increasing the values of pm.start_servers, pm.min_spare_servers, and pm.max_spare_servers, you can ensure that there are enough idle PHP-FPM processes available to handle incoming requests, reducing the occurrence of the warning message.

Remember to monitor your server's resource usage after making these changes to ensure that it can handle the increased number of PHP-FPM processes without any issues.

Please or to participate in this conversation.