admin 发表于 2021-4-16 17:36:54

Nginx Stub_status查看状态

#开启Stub_status模块:
/usr/local/nginx/sbin/nginx -V
有--with-http_stub_status_module说明已经开启该模块

#Stub_status模块使用:
location /status {
   stub_status;
}

#结果分析:
1.Active connections: 2
1)The current number of active client connections including Waiting connections.
当前活跃连接数。

2.server accepts handled requests 131 131 397
1)accepts(The total number of accepted client connections)
接受的客户端连接的总数。

2)handled(The total number of handled connections)
处理的连接总数。

3)requests(The total number of client requests)
客户端请求的总数。

3.Reading: 0 Writing: 1 Waiting: 1
1)Reading:The current number of connections where nginx is reading the request header.
nginx正在读取请求头的当前连接数。

2)Writing:The current number of connections where nginx is writing the response back to the client.
nginx将响应写回客户端的当前连接数。

3)Waiting:The current number of idle client connections waiting for a request.
等待请求的当前空闲客户端连接数。

页: [1]
查看完整版本: Nginx Stub_status查看状态