关于nginx的ngx_http_stub_status_module模块

上一篇 / 下一篇  2008-06-26 10:22:55 / 个人分类:LAMP

http://wiki.codemongers.com/NginxHttpStubStatusModule木铎校园 BBS 社区QK;~ swCW}
木铎校园 BBS 社区T;Uy EbpZu

The stub status module reports status similar tomathopd'sstatus page. It is plain text information like木铎校园 BBS 社区1kf~4g-Zek0]

Active connections: 291木铎校园 BBS 社区a0f3L&JH
OU4US
server accepts handled requests
0D2CU'E3k2R016630948 16630948 31070465木铎校园 BBS 社区&p6n W/} v;y;ey}
Reading: 6 Writing: 179 Waiting: 106
yJTEh3G#h'a0
}:N.t:AB4o0

active connections-- number of all open connections including connections to backends

?Dw:|2a*@0

server accepts handled requests-- nginx accepted 16630948 connections, handled 16630948 connections (no one was closed just it was accepted), and handles 31070465 requests(1.8 requests per connection)木铎校园 BBS 社区k,~1e#t K(e*b Ww)l0jS

reading-- nginx reads request header

I6bC*l;C0

writing-- nginx reads request body, processes request, or writes response to a client

@J*|z4nP2{0waiting-- keep-alive connections, actullay it isactive - (reading + writing)
Jx:G.ZX2Z3m]0
4F$O+@Vr0
bo/F&V5gs exS0对于 waiting 状态: waiting=active -
(reading + writing),注意这里是减号木铎校园 BBS 社区q1LECN7s"Y;T&Q

v*w;AeB+c n2y3@q N0而对于libevent模型来讲,排除阻塞的因素,waiting状态的连接一般为空闲的establelish状态的连接,数量过多的话,需要调节keeplive的值
2D} Ld;D _k0
Ox!jJz4Q5a0通过nginx的这个模块,参考下面的连接,可以得到很不错的监控图:木铎校园 BBS 社区pN%a2dk9l b
http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/
GP&L9a8H J([!R0http://dev.2xlp.com/svn/nginx_config/trunk/conf/_rrd/__README__.txt木铎校园 BBS 社区&TF?:xG#q
木铎校园 BBS 社区1ttg"|'f5j

x n'KDe0j7] {(H n0

TAG: nginx stub module status

 

评分:0

我来说两句

显示全部

:loveliness: :handshake :victory: :funk: :time: :kiss: :call: :hug: :lol :'( :Q :L ;P :$ :P :o :@ :D :( :)

关于作者