繁体   English   中英

警告:[pool www]服务器已达到pm.max_children设置(5),请考虑提高它

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

我收到此错误:

警告:[pool www]服务器已达到pm.max_children设置(5),请考虑提高它

当尝试在我的PHP错误日志中的forums.domain.com上访问我的XenForo安装时。

它每次都会发生,并且我认为这会导致PHP崩溃,从而导致同一盒子上的其他站点也无法正常工作。

我正在为这两个站点使用带有两个服务器块的nginx。 一个新的。 还有一个在论坛下

谢谢。

在Ubuntu 12(可能还有其他地方)上, pm.max_children值在配置文件/etc/php5/fpm/pool.d/www.conf 在文件中搜索该字符串并增加值。 重新启动PHP,以使更改通过以下命令生效:

 sudo service php5-fpm restart

如果使用的是Apache,则可能需要先重新启动该服务。

配置您的Pool pm.*指令并重新加载/重新启动PHP- http://www.php.net/manual/zh/install.fpm.configuration.php

pm.max_children int

The number of child processes to be created when pm is set to static and the maximum number of child processes to be created when pm is set to dynamic. This option is mandatory.

This option sets the limit on the number of simultaneous requests that will be served. Equivalent to the ApacheMaxClients directive with mpm_prefork and to the PHP_FCGI_CHILDREN environment variable in the original PHP FastCGI.

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM