[原创]Linux下压力测试工具http_load介绍
[原创]Linux下压力测试工具http_load介绍
1 安装操作步骤:
#tar zxvf http_load-12mar2006.tar.gz
#cd http_load-12mar2006
#make
#make install
2 使用方法介绍:
http_load -p 3 -s 10 mayingbao.txt
http_load -p 并发访问进程数 -s 访问时间 mayingbao.txt需要访问的URL文件
其中mayingbao.txt文件存放内容为具体请求的url地址;
具体的测试结果信息如下所示:
[root@localhost ~]# http_load -p 3 -s 10 mayingbao.txt
4 fetches, 3 max parallel, 134877 bytes, in 10.051 seconds
33719.2 mean bytes/connection
0.39797 fetches/sec, 13419.3 bytes/sec
msecs/connect: 213.264 mean, 214.423 max, 212.726 min
msecs/first-response: 1008.89 mean, 1544.77 max, 453.157 min
HTTP response codes:
code 200 -- 3
code 301 -- 1