- 浏览: 600109 次
- 性别:
- 来自: 杭州
文章分类
最新评论
-
oldrat:
还给出了 给出“对于多条A记录是采用什么策略返回IP”的结论, ...
【转载】关于java dns cache (域名缓存时间) -
snowing0427:
特地登录来感谢一下楼主~!!!
nginx里的break和last -
夏日小草:
403禁止了。
User Agent信息大全 -
uag:
比如从请求头里的$HOST变量里获取。(针对nginx,需要加 ...
nginx替换apache中的一个跳转问题 -
thinktothings:
修改Makefile文件 在哪,怎么修改?
使用sz,rz命令来上传和下载文件
ab的全称是ApacheBench,是Apache附带的一个小工具,专门用于HTTP Server的benchmark testing,可以同时模拟多个并发请求。
在这个例子的一开始,我执行了这样一个命令ab -n 10 -c 10 http://www.google.com/ 。这个命令的意思是启动ab,
向www.google.com发送10个请求(-n 10) ,并每次发送10个请求(-c 10) ——也就是说一次都发过去了。跟着下面的是ab输出的测试报告,红色部分是我添加的注释。*
D:\apahce\bin>ab.exe -n 10 -c 10 http://www.google.com/
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd, http://www.zeustech.net/
Copyright 2006 The Apache Software Foundation, http://www.apache.org/
Benchmarking www.google.com (be patient).....done
Server Software: gws
Server Hostname: www.google.com
Server Port: 80
Document Path: /
Document Length: 4941 bytes
Concurrency Level: 10
Time taken for tests: 5.218750 seconds//**整个测试持续的时间**
Complete requests: 10//**完成的请求数量**
Failed requests: 9//**失败的请求数量**
(Connect: 0, Length: 9, Exceptions: 0)
Write errors: 0
Total transferred: 52730 bytes**整个场景中的网络传输量**
HTML transferred: 49540 bytes**整个场景中的HTML内容传输量**
Requests per second: 1.92 [#/sec] (mean) **大家最关心的指标之一,相当于LR中的每秒事务数,后面括号中的mean表示这是一个平均值**
Time per request: 5218.750 [ms] (mean) *大家最关心的指标之二,相当于LR中的平均事务响应时间,后面括号中的mean表示这是一个平均值**
Time per request: 521.875 [ms] (mean, across all concurrent requests)
Transfer rate: 9.77 [Kbytes/sec] received*平均每秒网络上的流量,可以帮助排除是否存在网络流量过大导致响应时间延长的问题**
Connection Times (ms)
min mean[+/-sd] median max
Connect: 187 488 257.6 437 921
Processing: 312 1673 1204.4 1547 3985
Waiting: 296 1668 1206.3 1546 3984
Total: 593 2162 1432.6 1890 4906
**下面的内容为整个场景中所有请求的响应情况。在场景中每个请求都有一个响应时间,其中50%的用户响应时间小于**毫秒,60%的用户响应时间小于**毫秒,最大的响应时间小于 **毫秒**
Percentage of the requests served within a certain time (ms)
50% 1890
66% 2406
75% 3093
80% 3984
90% 4906
95% 4906
98% 4906
99% 4906
100% 4906 (longest request)
格式: ./ab [options] [http://]hostname[:port]/path
参数:
-n requests Number of requests to perform
//在测试会话中所执行的请求个数。默认时,仅执行一个请求 . 相当于用户数
-c concurrency Number of multiple requests to make
//一次产生的请求个数 。默认是一次一个。
-t timelimit Seconds to max. wait for responses
//测试所进行的最大秒数 。 其内部隐含值是-n 50000。它可以使对服务器的测试限制在一个固定的总时间以内。默认时,没有时间限制。
-p postfile File containing data to POST
//包含了需要POST的数据的文件.
-T content-type Content-type header for POSTing
//POST数据所使用的Content-type头信息。
-v verbosity How much troubleshooting info to print
//设置显示信息的详细程度 - 4或更大值会显示头信息, 3或更大值可以显示响应代码(404, 200等), 2或更大值可以显示警告和其他信息。 -V 显示版本号并退出。
-w Print out results in HTML tables
//以HTML表的格式输出结果。默认时,它是白色背景的两列宽度的一张表。
-i Use HEAD instead of GET
// 执行HEAD请求,而不是GET。
-x attributes String to insert as table attributes
//
-y attributes String to insert as tr attributes
//
-z attributes String to insert as td or th attributes
//
-C attribute Add cookie, eg. 'Apache=1234. (repeatable)
//-C cookie-name=value 对请求附加一个Cookie:行。 其典型形式是name=value的一个参数对。此参数可以重复。
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
//-P proxy-auth-username:password 对一个中转代理提供BASIC认证信任。用户名和密码由一个:隔开,并以base64编码形式发送。无论服务器是否需要(即, 是否发送了401认证需求代码),此字符串都会被发送。
-X proxy:port Proxyserver and port number to use
-V Print version number and exit
-k Use HTTP KeepAlive feature
-d Do not show percentiles served table.
-S Do not show confidence estimators and warnings.
-g filename Output collected data to gnuplot format file.
-e filename Output CSV file with percentages served
-h Display usage information (this message)
来自:http://zhengdl126.iteye.com/blog/417863
发表评论
-
【转载】sed如何删除脚本中的所有汉字
2012-10-11 19:07 3371今天有网友问我一 ... -
【转载】操作系统的灵魂是什么?
2012-09-24 13:24 946阿里云OS与谷歌Android之争、中兴 ... -
【转载】Nginx Location 指令基础知识
2012-08-13 19:37 1107Nginx 中的 Location 指令 是NginxH ... -
【转】负载均衡 LVS 工作原理
2012-07-12 11:05 2701一.LVS主从工作原理 ... -
Apache Rewrite 规则详解【转】
2012-07-11 16:00 1547在开篇之前: 我想说这篇文章其实是我刚刚接触Rewri ... -
【转载】CSS颜色代码大全
2012-05-11 00:30 1163转载自:http://hi.baidu.com/%C ... -
【转载】Linux目录树
2012-04-26 12:06 1184Linux目录树可以分为小的部分,每个部分可以在自己的磁 ... -
【转】技术普及贴
2012-04-25 11:31 1068从微博上弄下来的,南京邮电大学孙放同学的技术普及贴: -
【转载】老男孩浅谈如何看待运维?
2012-04-16 09:52 1295老男孩语录-老男孩浅谈如何看待运维?运维,很容易从字面理 ... -
【转载】老男孩最近几年常用的免费的开源软件
2012-04-16 09:51 1647下午受邀请参加了一个BBS活动,于是有了下面的内容。下面 ... -
RainMeter使用教程一篇
2012-04-01 15:41 9560早上花了点时间写了个RainMeter的使用教程,刚 ... -
htaccess文件小记
2012-03-29 23:51 1256RewriteEngine On RewriteCond % ... -
Ubuntu下安装GTK
2012-03-27 23:15 15131毕业设计需要用 ... -
Apache + Tomcat + mod_jk 部署"垂直负载均衡"
2012-03-26 09:26 5120转载请注明:出自 http://nigelzeng.iteye ... -
nagios安装和配置
2012-03-19 21:05 01、下载nagios和nagios插件: wget h ... -
【转】HTTP头部详解
2012-03-13 21:03 2268HTTP(HyperTextTransferProtoc ... -
【转】如何学习一门新的编程语言?
2012-02-13 20:12 742答案是:在学习区刻意练习,每天500行。什么是学习区,就 ... -
perl升级安装
2011-11-29 12:37 7455Linux服务器,perl版本为5.8.*, 最近在学习pe ... -
【转】让你提升命令行效率的 Bash 快捷键 [完整版]
2011-11-25 10:55 1093生活在 Bash shell 中,熟记以下快捷键,将极大 ... -
使用sz,rz命令来上传和下载文件
2011-11-13 21:02 7526最近从"SSH Secure Shell " ...
相关推荐
Apache网站压测工具ab使用教程.zip
ab是Apache超文本传输协议(HTTP)的性能测试工具。 其设计意图是描绘当前所安装的Apache的执行性能, 主要是显示你安装的Apache每秒可以处理多少个请求。
接口压测安装教学文档并且查看接口的压测tps qps等多线程启动接口压测安装教学文档并且查看接口的压测tps qps等多线程启动接口压测安装教学文档并且查看接口的压测tps qps等多线程启动接口压测安装教学文档并且查看...
apache benchmark 独立文件 ab.exe 可以直接使用 Version 2.3。一般用户压力测试用。参数如下 .\ab.exe --help Options are: -n requests Number of requests to perform -c concurrency Number of multiple ...
启动apache和nginx的方法啊,大家看看,有帮助的
这是在网站开发中对Apache服务器进行的压力测试,获取一定的参数作为分析,从而进行网站调优
使用参数说明,以及详细测试结果解释。。。。
Apache Spark 命令注入(CVE-2022-33891)格式化文档 Apache Spark 命令注入(CVE-2022-33891)漏洞复现 CVE-2022-33891POC Apache Spark 命令注入(CVE-2022-33891)POC CVE-2022-33891 影响版本 Apache spark ...
apache停止命令 /usr/local/apache2/bin/apachectl stop 停止 apache重新启动命令: /usr/local/apache2/bin/apachectl restart 重启 要在重启 Apache 服务器时不中断当前的连接,则应运行: /usr/local/sbin...
Apache ab下载,从apache安装目录拿出来的。也不用为了使用ab而安装Apache。ab.exe
NULL 博文链接:https://2279972332.iteye.com/blog/1989163
apache-jmeter-5.4.3,接口压测工具jmeter Apache JMeter 是 Apache 组织基于 Java 开发的压力测试工具,用于对软件做压力测试
Apache ab下载,冲apache安装目录拿出来的。也不用为了使用ab而安装Apache。ab.exe
Apache24加压版 需要Apache ab性能测试工具的可以在bin目录下获得,
apache压力测试之ab 有研究或探讨或开源的请加群:37424970 或联系本人MSN或邮箱:zhuseahui@yahoo.com.cn
ab是Apache超文本传输协议(HTTP)的性能测试工具。其设计意图是描绘当前所安装的Apache的执行性能,主要是显示你安装的Apache每秒可以处理多少个请求。
替代ApacheBench (ab)的HTTP负载生成器
apache压力测试,下载压缩包后,直接解压到目录,使用简单方便快捷
apache的ab.exe服务器压力测试工具,用于对各种服务器压力测试
文档中包含安装卸载常用命令,有了本文档再也不用百度去搜索了