# tar xzvf apachetop-0.12.6.tar.gz
# cd apachetop-0.12.6
# ./configure
# make
# make install
类似linux下的top工具,信息包括被访问的文件、次数、流量大小。
官方站点:
安装成功之后,将在/usr/local/bin,加入apachetop命名文件,如果不能直接执行,请到这里来找。
一般使用方法:
#apachetop -f access_20090724.log
last hit: 07:33:42 atop runtime: 0 days, 00:00:20 07:33:45
All: 28 reqs ( 1.5/sec) 964.3K ( 50.8K/sec) 34.4K/req
2xx: 8 (28.6%) 3xx: 10 (35.7%) 4xx: 10 (35.7%) 5xx: 0 ( 0.0%)
R ( 20s): 28 reqs ( 1.4/sec) 964.3K ( 48.2K/sec) 34.4K/req
2xx: 8 (28.6%) 3xx: 10 (35.7%) 4xx: 10 (35.7%) 5xx: 0 ( 0.0%)
REQS REQ/S KB KB/S URL
3 0.17 0.0 0.0*/css/jq2/images/ui-bg_glass_75_ffffff_1x400.png
2 0.11 0.4 0.0 /struts/dojo/dojo.js
2 0.11 0.4 0.0 /admin/css/3col_rightNav.css
2 0.11 30.8 1.7 /admin/FindAllOrderForm.action
2 0.11 0.4 0.0 /struts/xhtml/styles.css
2 0.15 52.2 4.0 /admin/adminShowWare.action
2 0.11 0.4 0.0 /struts/simple/dojoRequire.js
2 0.11 0.4 0.0 /admin/images/_-.gif
1 0.06 0.0 0.0 /js/candar.js
1 0.06 0.0 0.0 /css/jq2/images/ui-icons_222222_256x240.png
1 0.06 0.0 0.0 /js/jq/jq2.js
1 0.06 0.0 0.0 /images/so.gif
1 0.06 0.0 0.0 /css/jq2/jquery-ui-1.7.2.custom.css
1 0.05 478.9 25.2 /userfiles/image/01.jpg
1 0.06 384.0 22.6 /userfiles/image/03(1).jpg
1 0.07 0.0 0.0 /admin/saveModifWare.action
1 0.08 11.1 0.9 /js/common.js
1 0.06 0.0 0.0 /css/jq2/images/ui-bg_glass_75_AFDDF5_1x400.png
1 0.33 5.2 1.7 /3col_rightNav.css
下面是用法说明:
ApacheTop v0.12.6 - Usage:
File options:
-f logfile open logfile (assumed common/combined) [/var/log/httpd-access.log]
(repeat option for more than one source)
URL/host/referrer munging options:
-q 保持请求字符串[no]
-l 所有的url小写[no]
-s num 保持url路径段数量 [all]
-p 在referrer前面保留协议 [no]
-r 保留每一个的主机/ip [no]
Stats options:
必须提供两个参数 default: [-T 30]
缺省设置为保持记录状态30秒,30秒后数据刷新了。为了提供更多的信息给我们分析,我们可以调节下面的参数。
-H hits 保持状态只到多少点击数
-T secs 保持状态只到多少秒
-d secs 刷新延迟时间[5]
-h 这个帮助。
当执行之后,还有命令可以切换显示状态:
ApacheTop version 0.12.6, Copyright (c) 2003-2004, Chris Elsworth
ONE-TOUCH COMMANDS
d : 切换urls/referrers/hosts显示模式开关
n : 切换hits & bytes或返回代码开关
h or ? : 帮助信息
p : (un)暂停显示 (冻结更新)
q : 退出 ApacheTop
up/down : 移动星标 up/down
right/left : 进入/退出逐条显示模式
子菜单:
s: 排序: [the appropriate menu will appear for your display]
r) requests R) reqs/sec b) bytes B) bytes/sec
2) 2xx 3) 3xx 4) 4xx 5) 5xx
t: 固定显示 ON/OFF:
u) urls r) referrers h) hosts
f: 使用过滤器:
a) add/edit menu c) clear all s) show active (not done yet)
a: ADD FILTER SUBMENU
u) to urls r) to referrers h) to hosts
阅读(516) | 评论(0) | 转发(0) |