在debian 9 Apache 2.4 / php5-fpm服务器上,我从服务器状态页面获得了该信息:
"_" Waiting for Connection, "S" Starting up, "R" Reading Request,
"W" Sending Reply, "K" Keepalive (read), "D" DNS Lookup,
"C" Closing connection, "L" Logging, "G" Gracefully finishing,
"I" Idle cleanup of worker, "." Open slot with no current process
Srv PID Acc M CPU SS Req Conn Child Slot Client VHost Request
0-5 6603 0/62/3870 _ 0.70 41 109 0.0 20.20 102.71 84.123.95.200
1-5 6604 0/56/3513 _ 0.70 41 19 0.0 38.48 167.58 84.123.95.200
2-5 - 0/0/3431 . 0.09 39 0 0.0 0.00 86.74 127.0.0.1
...
149-4 - 0/0/11 . 0.16 38603 0 0.0 0.00 0.08 127.0.0.1 vm293.xxx.com:80 OPTIONS * HTTP/1.0
php-fpm conf:
pm = dynamic
pm.max_children = 5
pm.start_servers = 2
pm.min_spare_servers = 1
pm.max_spare_servers = 3
/etc/apache2/mods-enabled/mpm_prefork.conf:
...
MaxRequestWorkers 150
...
第一个问题:“ _”等待连接,“ I”空闲清理工人和“”之间有什么区别?没有当前进程的空槽
2nd:我还有pm.process_idle_timeout = 10s作为默认值。那么为什么我仍然有将近100英寸。当服务器从几个小时以来几乎什么都不处理时打开插槽?
3rd:MaxRequestWorkers 150和pm.max_children = 5之间的关系芯片是什么?
谢谢