http://wiki.codemongers.com/NginxHttpStubStatusModule
木铎校园 BBS 社区W Ke.dI2P!xSYR
Uv Z*LZ5l#~ s0The 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+I Lw!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)~
X0server 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:tx5ak
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@%w4mxW9x O
木铎校园 BBS 社区grq
cE7_YH
而对于libevent模型来讲,排除阻塞的因素,waiting状态的连接一般为空闲的establelish状态的连接,数量过多的话,需要调节keeplive的值木铎校园 BBS 社区&m7|1rdS"p7F3`
^8E0dc(u!c
v4M3eK0通过nginx的这个模块,参考下面的连接,可以得到很不错的监控图:木铎校园 BBS 社区1qhHS [%P'b
http://blog.kovyrin.net/2006/04/29/monitoring-nginx-with-rrdtool/木铎校园 BBS 社区:DV C:qEPGhttp://dev.2xlp.com/svn/nginx_config/trunk/conf/_rrd/__README__.txt木铎校园 BBS 社区X yl%uvc/Y@0{木铎校园 BBS 社区yGT
Zjhjy
木铎校园 BBS 社区`]|?m s