关于nginx的ngx_http_stub_status_module模块

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

http://wiki.codemongers.com/NginxHttpStubStatusModule木铎校园 BBS 社区WKe.dI2P!xS

YR Uv Z*LZ5l#~s0

The stub status module reports status similar tomathopd'sstatus page. It is plain text information like木铎校园 BBS 社区0{M-xG&CB{3mo:T

Active connections: 291木铎校园 BBS 社区~%I+ILw!r8u%X
server accepts handled requests木铎校园 BBS 社区$k/IC+A%}/k.i+V ^$l
16630948 16630948 31070465
V X8E,~6[ uD0Reading: 6 Writing: 179 Waiting: 106
2Ob s"^U0
9L V*nhv)K0h0

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

2i7W b"t!G)~ X0

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 社区_)v ]z+^ Dd

reading-- nginx reads request header木铎校园 BBS 社区`:b?1l^ f:t x5ak

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

j$~F4\jE1^0waiting-- keep-alive connections, actullay it isactive - (reading + writing)
a6H7b_(] |0
7Z&}$V9`.H6}H4p`0木铎校园 BBS 社区jFs'e |p3id}$H
对于 waiting 状态: waiting=active -
(reading + writing),注意这里是减号木铎校园 BBS 社区v i@%w4mx W9xO
木铎校园 BBS 社区grq cE7_YH
而对于libevent模型来讲,排除阻塞的因素,waiting状态的连接一般为空闲的establelish状态的连接,数量过多的话,需要调节keeplive的值木铎校园 BBS 社区&m7|1rdS"p7F3`

^8E0dc(u!c v4M3eK0通过nginx的这个模块,参考下面的连接,可以得到很不错的监控图:木铎校园 BBS 社区1q hHS [%P'b
http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/木铎校园 BBS 社区:DVC:qEPG
http://dev.2xlp.com/svn/nginx_config/trunk/conf/_rrd/__README__.txt木铎校园 BBS 社区Xyl%uvc/Y@0{
木铎校园 BBS 社区yGT
Zjhjy
木铎校园 BBS 社区`] | ?ms

TAG: nginx stub module status

 

评分:0

我来说两句

显示全部

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

关于作者