似乎PHP-fpm正在分配越来越多的内存,尽管请求数量达到峰值和下降.
无法发布多个图片,所以我把它们放到了 here.
正如你在uri的图片中看到的那样,一张图片Nginx请求,显示明显的下降和峰值.
其他的,每个孩子的PHP-fpm内存和平均内存似乎都没有遵循相同的模式.只有重启PHP-fpm才会产生效果,即便如此,我也不能说我发现性能有任何变化.
系统很好,响应时间很好,一切都很好,只是好奇这是否是预期的行为,是否有性能优势或应该避免(通过降低max_requests或其他东西?).
原文链接:https://www.f2er.com/php/138725.html无法发布多个图片,所以我把它们放到了 here.
正如你在uri的图片中看到的那样,一张图片Nginx请求,显示明显的下降和峰值.
其他的,每个孩子的PHP-fpm内存和平均内存似乎都没有遵循相同的模式.只有重启PHP-fpm才会产生效果,即便如此,我也不能说我发现性能有任何变化.
系统很好,响应时间很好,一切都很好,只是好奇这是否是预期的行为,是否有性能优势或应该避免(通过降低max_requests或其他东西?).
系统正在运行Debian GNU / Linux 6.0 Squeeze,AMD64. PHP版本5.3.6.
PHP 5.3.6
pool.d / www.conf:
pm.max_children = 50 pm.start_servers = 30 pm.min_spare_servers = 5 pm.max_spare_servers = 35 pm.max_requests = 1024
我已经在PHP-fpm.log中获得了这些,因为它是刚刚安装的:
[28-Jun-2011 14:45:39] WARNING: [pool www] child 1893 exited on signal 9 (SIGKILL) after 22296.217811 seconds from start [28-Jun-2011 14:45:39] NOTICE: [pool www] child 18391 started [28-Jun-2011 14:45:39] WARNING: [pool www] child 1903 exited on signal 9 (SIGKILL) after 22296.213677 seconds from start [28-Jun-2011 14:45:39] NOTICE: [pool www] child 18392 started [28-Jun-2011 14:45:39] WARNING: [pool www] child 1904 exited on signal 9 (SIGKILL) after 22296.213757 seconds from start [28-Jun-2011 14:45:39] NOTICE: [pool www] child 18393 started [28-Jun-2011 14:45:39] WARNING: [pool www] child 1905 exited on signal 9 (SIGKILL) after 22296.214307 seconds from start [28-Jun-2011 14:46:20] NOTICE: fpm is running,pid 18410 [28-Jun-2011 14:46:20] NOTICE: ready to handle connections [28-Jun-2011 15:10:04] NOTICE: Terminating ... [28-Jun-2011 15:10:04] NOTICE: exiting,bye-bye! [28-Jun-2011 15:10:04] NOTICE: fpm is running,pid 1742 [28-Jun-2011 15:10:04] NOTICE: ready to handle connections [28-Jun-2011 15:10:22] NOTICE: Terminating ... [28-Jun-2011 15:10:22] NOTICE: exiting,bye-bye! [28-Jun-2011 15:10:22] NOTICE: fpm is running,pid 2016 [28-Jun-2011 15:10:22] NOTICE: ready to handle connections [28-Jun-2011 15:28:04] NOTICE: Terminating ...