ab性能测试工具参数说明
来源:互联网 发布:win2008流量监控软件 编辑:程序博客网 时间:2024/05/16 04:18
[@2b5f1bc960ab ~]# ab -v
ab: option requires an argument -- v
ab: wrong number of arguments
Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
//<strong>测试</strong>会话中所执行的请求个数,默认仅执行一个请求
-n requests Number of requests to perform
//一次产生的请求个数,即同一时间发出多少个请求,默认为一次一个
-c concurrency Number of multiple requests to make
//<strong>测试</strong>所进行的最大秒数,默认为无时间限制....其内部隐含值是[-n 50000],它可以使对服务器的<strong>测试</strong>限制在一个固定的总时间以内
-t timelimit Seconds to max. wait for responses
-b windowsize Size of TCP send/receive buffer, in bytes
//包含了需要POST的数据的文件
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. Remember also to set -T
//POST数据所使用的Content-type头信息
-T content-type Content-type header for POSTing, eg.
'application/x-www-form-urlencoded'
Default is 'text/plain'
//设置显示信息的详细程度,4或更大值会显示头信息,3或更大值可以显示响应码(404,200等),2或更大值可以显示警告和其他信息
-v verbosity How much troubleshooting info to print
//以HTML表格的形式输出结果,默认是白色背景的两列宽度的一张表
-w Print out results in HTML tables
//执行HEAD请求,而不是GET
-i Use HEAD instead of GET
//设置<table>属性的字符串,此属性被填入<table 这里>
-x attributes String to insert as table attributes
//设置<tr>属性的字符串
-y attributes String to insert as tr attributes
//设置<td>属性的字符串
-z attributes String to insert as td or th attributes
//对请求附加一个Cookie行,其典型形式是name=value的参数对,此参数可以重复
-C attribute Add cookie, eg. 'Apache=1234. (repeatable)
//对请求附加额外的头信息,此参数的典型形式是一个有效的头信息行,其中包含了以冒号分隔的字段和值的对(如"Accept-Encoding: zip/zop;8bit")
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
//HTTP验证,用冒号:分隔传递用户名及密码
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
//对一个中转代理提供BASIC认证信任,用户名和密码由一个冒号:隔开,并以base64编码形式发送
//无论服务器是否需要(即是否发送了401认证需求代码),此字符串都会被发送
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
//对请求使用代理服务器
-X proxy:port Proxyserver and port number to use
//显示版本号并退出
-V Print version number and exit
//启用HTTP KeepAlive功能,即在一个HTTP会话中执行多个请求,默认为不启用KeepAlive功能
-k Use HTTP KeepAlive feature
//不显示"percentage served within XX [ms] table"的消息(为以前的版本提供支持)
-d Do not show percentiles served table.
//不显示中值和标准背离值,且均值和中值为标准背离值的1到2倍时,也不显示警告或出错信息,默认会显示最小值/均值/最大值等(为以前的版本提供支持)
-S Do not show confidence estimators and warnings.
//把所有<strong>测试</strong>结果写入一个'gnuplot'或者TSV(以Tab分隔的)文件
//此文件可以方便地导入到Gnuplot,IDL,Mathematica,Igor甚至Excel中,其中的第一行为标题
-g filename Output collected data to gnuplot format file.
//产生一个以逗号分隔的(CSV)文件,其中包含了处理每个相应百分比的请求所需要(从1%到100%)的相应百分比的(以微妙为单位)时间
//由于这种格式已经"二进制化",所以比'gnuplot'格式更有用
-e filename Output CSV file with percentages served
-r Don't exit on socket receive errors.
//显示使用方法
-h Display usage information (this message)
-Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
-f protocol Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or ALL)
ab: option requires an argument -- v
ab: wrong number of arguments
Usage: ab [options] [http[s]://]hostname[:port]/path
Options are:
//<strong>测试</strong>会话中所执行的请求个数,默认仅执行一个请求
-n requests Number of requests to perform
//一次产生的请求个数,即同一时间发出多少个请求,默认为一次一个
-c concurrency Number of multiple requests to make
//<strong>测试</strong>所进行的最大秒数,默认为无时间限制....其内部隐含值是[-n 50000],它可以使对服务器的<strong>测试</strong>限制在一个固定的总时间以内
-t timelimit Seconds to max. wait for responses
-b windowsize Size of TCP send/receive buffer, in bytes
//包含了需要POST的数据的文件
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. Remember also to set -T
//POST数据所使用的Content-type头信息
-T content-type Content-type header for POSTing, eg.
'application/x-www-form-urlencoded'
Default is 'text/plain'
//设置显示信息的详细程度,4或更大值会显示头信息,3或更大值可以显示响应码(404,200等),2或更大值可以显示警告和其他信息
-v verbosity How much troubleshooting info to print
//以HTML表格的形式输出结果,默认是白色背景的两列宽度的一张表
-w Print out results in HTML tables
//执行HEAD请求,而不是GET
-i Use HEAD instead of GET
//设置<table>属性的字符串,此属性被填入<table 这里>
-x attributes String to insert as table attributes
//设置<tr>属性的字符串
-y attributes String to insert as tr attributes
//设置<td>属性的字符串
-z attributes String to insert as td or th attributes
//对请求附加一个Cookie行,其典型形式是name=value的参数对,此参数可以重复
-C attribute Add cookie, eg. 'Apache=1234. (repeatable)
//对请求附加额外的头信息,此参数的典型形式是一个有效的头信息行,其中包含了以冒号分隔的字段和值的对(如"Accept-Encoding: zip/zop;8bit")
-H attribute Add Arbitrary header line, eg. 'Accept-Encoding: gzip'
Inserted after all normal header lines. (repeatable)
//HTTP验证,用冒号:分隔传递用户名及密码
-A attribute Add Basic WWW Authentication, the attributes
are a colon separated username and password.
//对一个中转代理提供BASIC认证信任,用户名和密码由一个冒号:隔开,并以base64编码形式发送
//无论服务器是否需要(即是否发送了401认证需求代码),此字符串都会被发送
-P attribute Add Basic Proxy Authentication, the attributes
are a colon separated username and password.
//对请求使用代理服务器
-X proxy:port Proxyserver and port number to use
//显示版本号并退出
-V Print version number and exit
//启用HTTP KeepAlive功能,即在一个HTTP会话中执行多个请求,默认为不启用KeepAlive功能
-k Use HTTP KeepAlive feature
//不显示"percentage served within XX [ms] table"的消息(为以前的版本提供支持)
-d Do not show percentiles served table.
//不显示中值和标准背离值,且均值和中值为标准背离值的1到2倍时,也不显示警告或出错信息,默认会显示最小值/均值/最大值等(为以前的版本提供支持)
-S Do not show confidence estimators and warnings.
//把所有<strong>测试</strong>结果写入一个'gnuplot'或者TSV(以Tab分隔的)文件
//此文件可以方便地导入到Gnuplot,IDL,Mathematica,Igor甚至Excel中,其中的第一行为标题
-g filename Output collected data to gnuplot format file.
//产生一个以逗号分隔的(CSV)文件,其中包含了处理每个相应百分比的请求所需要(从1%到100%)的相应百分比的(以微妙为单位)时间
//由于这种格式已经"二进制化",所以比'gnuplot'格式更有用
-e filename Output CSV file with percentages served
-r Don't exit on socket receive errors.
//显示使用方法
-h Display usage information (this message)
-Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
-f protocol Specify SSL/TLS protocol (SSL2, SSL3, TLS1, or ALL)
0 0
- ab性能测试工具参数说明
- apache ab测试工具参数说明
- 性能测试工具ab
- apache 测试工具ab说明
- web性能测试工具ab
- Apache性能测试工具ab
- linux下性能测试工具--ab测试
- ab - Apache HTTP服务器性能测试工具
- ab - Apache HTTP服务器性能测试工具
- HTTP性能测试工具 Apache ab
- apache的ab性能测试工具
- HTTP性能测试工具:AB&http_load
- Apache之性能测试工具ab小解
- 性能测试工具ab的使用
- apache性能测试工具ab使用详解
- 网站性能测试工具ab学习
- apache性能测试工具ab使用详解
- apache性能测试工具ab使用详解
- asp.net 状态管理方案总结
- python 字符串处理
- java中如何把小数转化成百分数
- Elasticsearch API操作01
- PropertyUtils的使用
- ab性能测试工具参数说明
- @using (Html.BeginForm())参数示例
- instantclient(Oracle即时客户端)的安装与配置
- Table左滑删除并添加多个按钮实例
- final finally finalize的使用区别
- fatal error RC1015: cannot open include file 'l.chs\\afxres.rc'
- WIN10本地搭建APACHE+PHP运行环境
- Eclipse导入Tomcat源码
- 分享下工作经验