2008-05-17
使用ab作为简单的压力测试
关键字: ab
安装或编译一个apache2,在bin目录下有个ab.
主要是-n -c 两个参数。
例如:
如果一切正常,则会返回一个测试报告。
Usage: ./ab [options] [http[s]://]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
-p postfile File containing data to POST
-T content-type Content-type header for POSTing
-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
-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)
主要是-n -c 两个参数。
例如:
./ab -n 1000 -c 1000 http://webiocs.org/manage
如果一切正常,则会返回一个测试报告。
发表评论
- 浏览: 61665 次
- 性别:

- 来自: 杭州

- 详细资料
搜索本博客
我的相册
dog
共 3 张
共 3 张
最近加入圈子
链接
最新评论
-
安装kvm,后现代的虚拟机
这个需要cpu支持的,我的intel core 2 Duo T5500就不支持了 ...
-- by beming -
spark汉化其实还需要改很 ...
怎么没有说怎么改啊。
-- by hf_rabbit -
常见的几种校验方式
不错,收藏了,正好要用二次密码校验,谢谢了
-- by jmajia -
学了一招右对齐
labelAlign : "right",
-- by davidcen -
在google app engine上搞 ...
单词都拼错了.
-- by ja3939






评论排行榜