openresty / openresty

High Performance Web Platform Based on Nginx and LuaJIT

Home Page:https://openresty.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

openresty nginx nginx_status data is abnormal

ZhangSetSail opened this issue · comments

openresty version: nginx version: openresty/1.21.4.1

I released nginx_status data by configuring nginx.conf, but it seems that the data is not normal,What could be the cause?

curl 127.0.0.1:80/nginx_status

Active connections: 200
server accepts handled requests
 24470 24470 23704
Reading: 0 Writing: 14 Waiting: 125

active != reading + writing + waiting

http://nginx.org/en/docs/http/ngx_http_stub_status_module.html#var_connections_active

Active connections
   - The current number of active client connections including Waiting connections.
Reading
  - The current number of connections where nginx is reading the request header.
Writing
  - The current number of connections where nginx is writing the response back to the client.
Waiting
  - The current number of idle client connections waiting for a request.

The reading status only includes the requests that are reading the request header.
So, the requests sent to the upstream stream are not included in the reading status.

ok thanks