[code][root@htuidc ~]# webbench -c 10000 -t 20 http://192.168.10.1/ 10000 clients, running 20 sec. Speed=139101 pages/min, 1891773 bytes/sec. Requests: 46367 susceed, 0 failed. [root@htuidc ~]# webbench -c 10000 -t 21 http://192.168.10.1/ 10000 clients, running 21 sec. Speed=138571 pages/min, 1869961 bytes/sec. Requests: 48139 susceed, 361 failed. [root@htuidc ~]# webbench -c 20000 -t 20 http:/...
by g361031315 - 服务器应用 - 2013-12-10 19:41:10 阅读(1264) 回复(4)
webbench最多可以模拟3万个并发连接去测试网站的负载能力,个人感觉要比Apache自带的ab压力测试工具好,安装使用也特别方便。
1、适用系统:Linux
2、编译安装:
1. wget http://blog.s135.com/soft/linux/webbench/webbench-1.5.tar.gz
2. tar zxvf webbench-1.5.tar.gz
3. cd webbench-1.5
4. make && make install
3、使用:
1. webbench -c 3000...
在 nginx+tomcat 负载集群 做压力测试结果 环境: redhat5 ,nginx-1.0.10 ,apache-tomcat-6.0.32 1、如果用命令测试: #ab -c 200 -n 30000 http://172.16.200.80/ nginx 状态 :(http://172.16.200.80/nginxStatus) Active connections: 159 server accepts handled requests 114917 114917 115003 Reading: 33 Writing: 126 Waiting: 0 2、如果用LR 测试: Active connections: 1 6 server accepts handled reque...
本帖最后由 tevoo2 于 2010-10-28 14:54 编辑 服务器配置:Dell R710, 8G内存, ubuntu 10.10。 压力测试的页面是 index.html ,该文件值包含了"Hello World!" 500的并发: http_load -f 10000 -p 500 urllist.txt 结果: 10000 fetches, 500 max parallel, 220000 bytes, in 0.693075 seconds 22 mean bytes/connection 14428.5 fetches/sec, 317426 bytes/sec msecs/connect: 0.4445 mean, 4.755 max, 0.143 min msecs/first...
过对服务器压力测试可以大概了解一个服务器的负载能力,下面是windows下的Apache服务器测试方法。\r\n 在Apache服务器自带了一个测试程序Ab.exe可以很方便的使用 。。\r\n 命令是 ab -c 请求数 -n 线程数 网址(建议输入目标网页)。。\r\n 线程数不宜过大 按照你电脑的承受能力 。。。\r\n 请求数有限制 防止有人乱ddos别人 。。\r\n 例:ab -n 10 -c 10 http://192.168.1.3/index.html\r\n 结果如下 。。\r\n ...
nginx/windows: 让nginx以服务的方式运行- ---------------------------chinaunix.net----------------------------------------------------- 在windows下安装了nginx, 郁闷是发现它没有以服务方式运行, 也就是说当用户注销后,程序 会终止.因此需要将nginx作为服务运行. 假设nginx安装在c:\nginx\下: 1.下载微软服务注册工具srvany.exe, instsrv.exe, 存放到c:\nginx\目录下 http://eastedu.bl-changjiang.com/UploadFiles/2006...
nginx在windows下如何安装? http://nginx.net/ The latest stable versions nginx/windows-0.7.61 就是这个 nginx/windows-0.7.61版本。 它在windows里是怎么启动的?好像启动后,注销或重启windows后,就不会自动开启了。这样吗? :emn52: :emn52: :emn52:
location / { root /cygdrive/d/phpdoc/; index index.html index.htm index.php; 如果你网站文件目录是 到d:/phpdoc/ 要将配置文件写成 root /cygdrive/d/phpdoc/;