apache ab开源的压力测试工具参数介绍
来源:互联网 发布:网络电影排行榜前十名 编辑:程序博客网 时间:2024/04/25 10:01
apache ab是开源的轻量级压力测试工具,开发者可以使用该测试工具进行简单的压力测试工作。如下是该工具的参数详解:
如果服务器上安装了apache,那么就会自动安装了ab工具。如果没安装,可以通过httpd_tools源码进行安装。
进入到apache/bin目录,ab命令在该目录下,执行 ./ab -h 查看ab参数详解,如下:
[root@test bin]# ./ab -h
Usage: ./ab [options] [http://]hostname[:port]/path
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make
-t timelimit Seconds to max. wait for responses
-b windowsize Size of TCP send/receive buffer, in bytes
-p postfile File containing data to POST. Remember also to set -T
-u putfile File containing data to PUT. Remember also to set -T
-T content-type Content-type header for POSTing, eg.
'application/x-www-form-urlencoded'
Default is 'text/plain'
-v verbosity How much troubleshooting info to print
-w Print out results in HTML tables
-i Use HEAD instead of 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)
-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.
-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
-r Don't exit on socket receive errors.
-h Display usage information (this message)
[root@test bin]#
中文介绍:
-n 执行的请求数
-c 并发请求数
-t 测试时执行时间
-b tcp缓冲区大小
-p 发送包含的post请求的header信息
-u 数据信息
-h ab命令帮助信息
- apache ab开源的压力测试工具参数介绍
- apache ab压力测试工具带参数
- apache ab压力测试工具的参数详解
- apache的ab压力测试工具
- Apache的压力测试工具ab
- Apache的压力测试工具ab.exe
- Apache的压力测试工具ab
- Apache的ab工具进行压力测试
- Apache的ab工具进行压力测试
- apache 压力测试工具ab
- apache 压力测试工具ab
- apache 压力测试工具ab
- apache压力测试工具ab
- apache 压力测试工具ab
- apache 压力测试工具ab
- 压力测试工具Apache ab
- AB --- APACHE自带的压力测试工具 (APACHE BENCHMARK )
- Apache的ab压力测试
- SNMP详解
- 笨办法学 Python · 续 练习 47:`bc`
- HDU 6129 Just do it【杨辉三角】【思维题】【好题】
- SQL SERVER 查自动本月,本年,本日的数据条件
- golang中发送http请求的几种常见情况
- apache ab开源的压力测试工具参数介绍
- Maven 依赖管理
- PAT_1068. Find More Coins
- jQuery $.ajax()方法参数详解
- java中的生命周期详解
- Kafka vs RocketMQ—— Topic数量对单机性能的影响-转自阿里中间件
- Java IO进行文件copy
- Android layout属性大全
- PAT乙级 1039.到底买不买(20)