1

当我的服务器收到许多请求时,php-fpm 记录(php5-fpm.log)如下:

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

我的 php-fpm.conf 是:

    ...
    pm = dynamic
    pm.max_children = 50
    pm.start_servers = 2
    pm.min_spare_servers = 1
    pm.max_spare_servers = 3
    pm.max_requests = 200
    ...
4

1 回答 1

1

看来您需要更改 php-fpm.conf。

pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3

正如 php-fpm.log 显示的那样,[pool www] 似乎很忙。总共有 6 个子进程,php-fpm 将再产生 8 个。这意味着没有足够的 php-fpm 进程。我建议你根据你的服务器性能增加 pm.start_servers、pm.min_spare_servers 和 pm.min_spare_servers。

于 2012-04-12T09:59:25.650 回答