php-fpm Requests: 51856,表示什么意思


使用 systemctl status php-fpm 命令,这一段 Status: "Processes active: 0, idle: 12, Requests: 51856, slow: 0, Traffic: 0.5req/sec"

1)里面的 Requests: 51856 表示的是请求总数?还是?如果是是,那什么时候开始算起的?
2) Traffic: 0.5req/sec 表示每秒0.5个请求?这样算高还是算低


 [root@aliyun basic]# systemctl status php-fpm
php-fpm.service - The PHP FastCGI Process Manager
   Loaded: loaded (/usr/lib/systemd/system/php-fpm.service; enabled)
   Active: active (running) since Fri 2015-07-03 19:20:28 CST; 1 day 17h ago
 Main PID: 26805 (php-fpm)
   Status: "Processes active: 0, idle: 12, Requests: 51856, slow: 0, Traffic: 0.5req/sec"
   CGroup: /system.slice/php-fpm.service
           ├─  349 php-fpm: pool www
           ├─ 2139 php-fpm: pool www
           ├─26805 php-fpm: master process (/etc/php-fpm.conf)
           ├─26809 php-fpm: pool www
           ├─26810 php-fpm: pool www
           ├─26811 php-fpm: pool www
           ├─26812 php-fpm: pool www
           ├─26813 php-fpm: pool www
           ├─26830 php-fpm: pool www
           ├─26868 php-fpm: pool www
           ├─28319 php-fpm: pool www
           ├─28903 php-fpm: pool www
           └─30465 php-fpm: pool www

Jul 03 19:20:28 aliyun systemd[1]: Starting The PHP FastCGI Process Manager...
Jul 03 19:20:28 aliyun systemd[1]: Started The PHP FastCGI Process Manager.

php-fpm centos7

妞、唻個沕 10 years, 4 months ago

 pid – 进程PID,可以单独kill这个进程. You can use this PID to kill a long running process.
state – 当前进程的状态 (Idle, Running, …)
start time – 进程启动的日期
start since – 当前进程运行时长
requests – 当前进程处理了多少个请求
request duration – 请求时长(微妙)
request method – 请求方法 (GET, POST, …)
request URI – 请求URI
content length – 请求内容长度 (仅用于 POST)
user – 用户 (PHP_AUTH_USER) (or ‘-’ 如果没设置)
script – PHP脚本 (or ‘-’ if not set)
last request cpu – 最后一个请求CPU使用率。
last request memorythe - 上一个请求使用的内存

当前进程处理了多少个请求

三茎受 answered 10 years, 4 months ago

Your Answer