A:192.168.14.11
B:192.168.14.12
C:192.168.14.13
C向B发起测试,B再复制到A去
A\B:
wget
tar -zxvf tcpcopy-0.3.5.tar.gz
cd tcpcopy-0.3.5
./configure
make
make install
cd ..
yum install httpd -y
service httpd start
echo "test" >/var/www/html/index.html
A:
modprobe ip_queue
iptables -I OUTPUT -p tcp --sport 80 -j QUEUE
iptables -A INPUT -p tcp --dport 80 -j ACCEPT
/usr/local/bin/interception
B:
/usr/local/bin/tcpcopy 192.168.14.12 80 192.168.14.11 80
C:
wget
tar zxvf SuperWebBench.tar.gz
cd superwebbench
make && make install
cd ..
压力:(-c并发,-t时间)
superwebbench -c 10 -t 30
A\B:
cat /var/log/httpd/access_log |wc -l
用webbench之类的压力测试工具,可能数据会相差很大,这个压力测试工具造成的,,可以用CURL模拟做一个压力,,结果一个数据都没丢,,想更多的了解,可以查看作者的WEIBO或BLOG
http://weibo.com/u/1892760563
http://blog.csdn.net/wangbin579
阅读(1465) | 评论(0) | 转发(0) |