首页 > 其他 > 详细

nginx状态详解

时间:2016-10-22 00:58:21      阅读:243      评论:0      收藏:0      [点我收藏+]

开启方法: 

server {

 ...

 location /nginx_status {

          stub_status on;

          access_log off;

          allow 123.123.123.123; # 允许访问的 IP

          allow 127.0.0.1;

          deny all;

       }

 }


Active connections: 1

server accepts handled requests 

233851 233851 687942

Reading: 0 Writing: 1  waiting: 0


状态页面各项数据的意义:

active connections – 当前 Nginx 正处理的活动连接数。

serveraccepts handled requests — 总共处理了 233851 个连接 , 成功创建 233851 次握手 (证明中间没有失败的 ), 总共处理了 687942 个请求 ( 平均每次握手处理了 2.94 个数据请求 )。

reading — nginx 读取到客户端的 Header 信息数。

writing — nginx 返回给客户端的 Header 信息数。

waiting — 开启 keep-alive 的情况下,这个值等于 active – (reading + writing), 意思就是 Nginx 已经处理完正在等候下一次请求指令的驻留连接。


本文出自 “亮公子” 博客,请务必保留此出处http://iyull.blog.51cto.com/4664834/1864392

nginx状态详解

原文:http://iyull.blog.51cto.com/4664834/1864392

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!