Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

I'm getting this error:

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

When trying to access my XenForo installation at forums.domain.com in my PHP error log.

It happens every time, and I think it's causes PHP to crash, which prevents the other site on the same box from working as well.

I'm using nginx with two server blocks for these two sites. One's under new. and one's under forums..

Thanks.

like image 687
user3163221 Avatar asked Feb 07 '14 22:02

user3163221


People also ask

What is PM Max_children?

pm.max_children = Total RAM dedicated to the web server / Max child process size. For example, if the server has 8GB of RAM and 6GB of RAM is planned to be allocated to the web server, then the pm.max_children value will be the following: pm.max_children = 6144MB / 85MB = 72.


1 Answers

On Ubuntu 12 (and probably elsewhere), the pm.max_children value is set in the configuration file /etc/php5/fpm/pool.d/www.conf. Search the file for that string and increase the value. Restart PHP for the change to take effect with this command:

 sudo service php5-fpm restart

If you are using Apache, you may need to restart that service first.

like image 182
Demitri Avatar answered Nov 30 '22 12:11

Demitri