webbench压力测试的疑问
各位大侠,大家好!我在windows 平台下用squid+tomcat(2个)组建了一个小的集群环境,我想测试下是不是squid的缓存起到了做用,同时,是不是集群能提高并发量,我就用webbench做了如下测试,结果如下:
*************************************************************
webbench -c 500 -t 30 http://192.168.88.152/test/nginx-test.jsp
结果:
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.88.152/test/nginx-test.jsp
500 clients, running 30 sec.
Speed=76976 pages/min, 1733260 bytes/sec.
Requests: 35411 susceed, 3077 failed.
*************************************************************
webbench -c 500 -t 30 http://192.168.88.152:8080/test/nginx-test.jsp
结果:
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.88.152:8080/test/nginx-test.jsp
500 clients, running 30 sec.
Speed=81846 pages/min, 1044932 bytes/sec.
Requests: 28120 susceed, 12803 failed
*************************************************************
webbench -c 500 -t 30 http://192.168.88.152/dxh/index.html
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.88.152/dxh/index.html
500 clients, running 30 sec.
Speed=8594 pages/min, 596364 bytes/sec.
Requests: 2500 susceed, 1797 failed.
*************************************************************
webbench -c 500 -t 30 http://192.168.88.152:8080/dxh/index.html
Webbench - Simple Web Benchmark 1.5
Copyright (c) Radim Kolar 1997-2004, GPL Open Source Software.
Benchmarking: GET http://192.168.88.152:8080/dxh/index.html
500 clients, running 30 sec.
Speed=81470 pages/min, 11509763 bytes/sec.
Requests: 40735 susceed, 0 failed.
*************************************************************
我完全不明白了,为什么动态的jsp处理能力明显增强了,但加了缓存的squid反而不如一个tomcat的处理速度?我的squid的缓存确定是生效了,我用squid -z实现过。请各位给点明示!
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论