博客
关于我
强烈建议你试试无所不能的chatGPT,快点击我
apache ab工具安装测试
阅读量:5014 次
发布时间:2019-06-12

本文共 2224 字,大约阅读时间需要 7 分钟。

1.安装

 安装包下载地址:

 

将 httpd-2.2.29.tar.gz 解压到目录 /apps/install/httpd-2.2.29 ,这是我放置的位置

cd /apps/install/httpd-2.2.29

./configure

make

make install

ok ,没有 error 就表示安装成功了,上面我并没有改变他的编译目录,默认的编译目录在

/usr/local/apache2/bin

如果找不到了,搜索呗

find . -name httpd

 

2.测试

 进入 /usr/local/apache2/bin

cd /usr/local/apache2/bin

 ./ab -n 300 -c 300 http://www.baidu.com/

执行 300次,每次并发 300个请求 www.baidu.com

 

./ab -n 3000 -c 3000 http://www.test.com/
其中-n代表每次并发量,-c代表总共发送的数量
 

3.测试结果说明

 

[root@Svr107 bin]# ./ab -n 3000 -c 3000 http://www.test.com/  This is ApacheBench, Version 2.3 <$Revision: 655654 $>Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/Licensed to The Apache Software Foundation, http://www.apache.org/Benchmarking www.twioo.com (be patient)Completed 300 requestsCompleted 600 requestsCompleted 900 requestsCompleted 1200 requestsCompleted 1500 requestsCompleted 1800 requestsCompleted 2100 requestsCompleted 2400 requestsCompleted 2700 requestsCompleted 3000 requestsFinished 3000 requestsServer Software:        nginx/0.7.65Server Hostname:        www.test.comServer Port:            80Document Path:          /  ###请求的资源Document Length:        50679 bytes  ###文档返回的长度,不包括相应头Concurrency Level:      3000   ###并发个数Time taken for tests:   30.449 seconds   ###总请求时间Complete requests:      3000     ###总请求数Failed requests:        0     ###失败的请求数Write errors:           0Total transferred:      152745000 bytesHTML transferred:       152037000 bytesRequests per second:    98.52 [#/sec] (mean)      ###平均每秒的请求数Time per request:       30449.217 [ms] (mean)     ###平均每个请求消耗的时间Time per request:       10.150 [ms] (mean, across all concurrent requests)  ###上面的请求除以并发数Transfer rate:          4898.81 [Kbytes/sec] received   ###传输速率Connection Times (ms)              min  mean[+/-sd] median   maxConnect:        2   54  27.1     55      98Processing:    51 8452 5196.8   7748   30361Waiting:       50 6539 5432.8   6451   30064Total:         54 8506 5210.5   7778   30436Percentage of the requests served within a certain time (ms)  50%   7778   ###50%的请求都在7778Ms内完成  66%  11059  75%  11888  80%  12207  90%  13806  95%  18520  98%  24232  99%  24559 100%  30436 (longest request)

 

转载于:https://www.cnblogs.com/yun965861480/p/6516095.html

你可能感兴趣的文章
Educational Codeforces Round 60 (Rated for Div. 2) C. Magic Ship
查看>>
Windows 2008 R2系统开机时如何不让Windows进行磁盘检测?
查看>>
WP7应用开发笔记(18) 本地化与多语言
查看>>
解决 .so文件64与32不兼容问题
查看>>
归并排序法
查看>>
【剑指offer】面试题26:复杂链表的复制
查看>>
spark开发生成EXE
查看>>
Vue 全家桶介绍
查看>>
WPF Bitmap转Imagesource
查看>>
Java compiler level does not match the version of the installed Java project facet.解决方法
查看>>
笔记_小结
查看>>
Linux lsof命令 umount U盘
查看>>
自定义Font
查看>>
linux svn 服务端搭建
查看>>
linux时间同步ntp服务的安装与配置
查看>>
django.core.exceptions.ImproperlyConfigured: Requested setting DEFAULT_INDEX_TABLESPACE的解决办法...
查看>>
网络编程-socket并发-粘包问题
查看>>
python 中安装pandas
查看>>
Hibernate 的<generator class="native"></generator>的不同属性含义
查看>>
linux修改root账户的用户名所得的教训
查看>>