惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

酷 壳 – CoolShell
酷 壳 – CoolShell
G
Google Developers Blog
V
V2EX
美团技术团队
H
Help Net Security
月光博客
月光博客
爱范儿
爱范儿
Engineering at Meta
Engineering at Meta
The Cloudflare Blog
U
Unit 42
大猫的无限游戏
大猫的无限游戏
Recent Announcements
Recent Announcements
A
About on SuperTechFans
博客园 - Franky
The GitHub Blog
The GitHub Blog
N
Netflix TechBlog - Medium
人人都是产品经理
人人都是产品经理
博客园 - 司徒正美
MyScale Blog
MyScale Blog
B
Blog
雷峰网
雷峰网
Y
Y Combinator Blog
云风的 BLOG
云风的 BLOG
T
The Blog of Author Tim Ferriss

博客园 - Simle

OpenClaw 接入 Telegram 编程随想曲周刊(第82期) 编程随想曲周刊(第81期) Arduino自动安装ESP32开发包 Arduino手动安装ESP32开发包 Docker入门实践(六) 编程随想曲周刊(第80期) Docker入门实践(五) Docker入门实践(四) Docker入门实践(三) Docker入门实践(二) Docker入门实践(一) Nginx入门实践(五) Nginx入门实践(四) Nginx入门实践(三) Nginx入门实践(二) 编程随想曲周刊(第79期) 编程随想曲周刊(第78期) 编程随想曲周刊(第77期) Nginx入门实践(一)
Nginx入门实践(六)
Simle · 2024-09-13 · via 博客园 - Simle

环境

系统:Windows7
Nginx版本:1.26.2

监控配置

    location /nginx-status {
        stub_status     on;
        access_log      on;
    }

监控访问

http://localhost/nginx-status

Active connections: 2 
server accepts handled requests
 2 2 30 
Reading: 0 Writing: 1 Waiting: 1

监控参数解析

Active connections:与后端建立的服务连接数
server accepts handled requests:Nginx总共处理了2个连接,成功创建了2次握手,总共处理了30个请求
Reading:nginx读取到客户端的Header信息数
Writing:nginx返回到客户端的Header信息数
Waiting:开启Keep-alive的情况下,这个值等于 Active -(Reading + Writing)。表示nginx已经处理完成,正在等候下次一次请求的连接数。