没事查看了一下php日志,发现提示进程数不够,日志信息如下:
[04-Nov-2014 14:19:08] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 15 total children
[04-Nov-2014 14:29:27] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 16 total children
[04-Nov-2014 16:51:04] NOTICE: Finishing ...
[04-Nov-2014 16:51:04] NOTICE: exiting, bye-bye!
[04-Nov-2014 16:51:06] NOTICE: fpm is running, pid 31023
[04-Nov-2014 16:51:06] NOTICE: ready to handle connections
[04-Nov-2014 19:01:05] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 17 total children
[04-Nov-2014 19:54:47] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 17 total children
[04-Nov-2014 20:36:06] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 19 total children
[04-Nov-2014 21:18:56] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 17 total children
[05-Nov-2014 05:30:04] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 15 total children
[05-Nov-2014 11:01:37] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 8 children, there are 0 idle, and 17 total children
[05-Nov-2014 11:01:38] WARNING: [pool www] seems busy (you may need to increase pm.start_servers, or pm.min/max_spare_serve
rs), spawning 16 children, there are 0 idle, and 21 total children
修改成如下参数后,发现php日志中无此报警了:
; Note: This value is mandatory.
pm.max_children = 1024
; The number of child processes created on startup.
; Note: Used only when pm is set to 'dynamic'
; Default Value: min_spare_servers + (max_spare_servers - min_spare_servers) / 2
pm.start_servers = 512
; The desired minimum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.min_spare_servers = 4
; The desired maximum number of idle server processes.
; Note: Used only when pm is set to 'dynamic'
; Note: Mandatory when pm is set to 'dynamic'
pm.max_spare_servers = 512