简体   繁体   English

php-fpm中按需模式下的pm.process_idle_timeout不起作用

[英]pm.process_idle_timeout under ondemand mode in php-fpm doesn't work

I test ondemand mode in php-fpm. 我在php-fpm中测试按需模式。 But pm.process_idle_timeout seems not working. 但是pm.process_idle_timeout似乎不起作用。 conf: CONF:

pm = ondemand

; Default Value: 10s
; pm.process_idle_timeout = 10s

; Only work with static and dynamic mode?
pm.max_children = 5

pm.max_requests = 2000

I send some trivial requests to respawn new processes. 我发送了一些琐碎的请求来重新生成新进程。 The children processes will be limited to max_children, but they will not be killed after pm.process_idle_timeout seconds. 子进程将被限制为max_children,但是在pm.process_idle_timeout秒之后它们不会被杀死。 How does this mode work or is there anything wrong with my environment? 该模式如何工作,或者我的环境有什么问题?

PS: nginx+php-fpm, php version is 5.6.22. PS:nginx + php-fpm,php版本为5.6.22。

In your config you have: 在您的配置中,您有:

; Default Value: 10s
; pm.process_idle_timeout = 10s

The semi-colon (;) represents a comment. 分号(;)表示注释。 Remove the semi-colon and restart your fpm process. 删除分号并重新启动fpm过程。

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

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