apache bench(ab) 压测,模拟post请求
来源:互联网 发布:剑灵捏脸数据龙男 编辑:程序博客网 时间:2024/05/17 15:16
原料:apache bench
使用方法:Usage: ab [options] [http[s]://]hostname[:port]/path
从浏览器抓包,获取jsonData以及cookie,记录http请求名称
将jsonData存放于profile文件目录中
在linux下执行:ab -n 10 -c 10 -p "[AP of profile]" -T "application/x-www-form-urlencoded" -H "cookie: [cookie]" [https://]hostname/
备注:
Options are:
-n requests Number of requests to perform
-c concurrency Number of multiple requests to make at a time
-t timelimit Seconds to max. to spend on benchmarking
This implies -n 50000
-s timeout Seconds to max. wait for each response
Default is 30 seconds
-b windowsize Size of TCP send/receive buffer, in bytes
-B address Address to bind to when making outgoing connections
-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 to use for POST/PUT data, 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.
-q Do not show progress when doing more than 150 requests
-l Accept variable document length (use this for dynamic pages)
-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)
-Z ciphersuite Specify SSL/TLS cipher suite (See openssl ciphers)
-f protocol Specify SSL/TLS protocol
- apache bench(ab) 压测,模拟post请求
- windows下使用apache bench(ab)进行带多个header信息的post请求压力测试
- 使用apache ab命令压力测试时发送post请求
- Apache Bench (ab)测试出现 Failed requests
- centos接口压力测试apache bench(ab)压力测试
- apache bench
- apache ab测试工具中发送POST请求的具体实现
- PHP性能:序——谈ab(Apache Bench)压力测试工具
- ab 发送post请求 测试API性能
- Apache ab 压测
- 模拟Post请求
- HTTP 模拟post请求
- C#模拟post请求
- Java模拟post请求
- asp模拟post请求
- cURL模拟POST请求
- 模拟post请求
- 终端模拟post请求
- POJ 2352[树状数组]
- 【转】JSP/SERVLET入门教程--Servlet 使用入门
- thinkphp报错 找不到think/log
- Android获取输入法高度——输入法与页面布局无缝切换
- MongoDB小结32 - 聚合管道【$skip】
- apache bench(ab) 压测,模拟post请求
- solr 增量更新
- monkey简介
- HD--2544最短路
- 手机端网页:控制安卓手机返回键
- mysql 给表和字段加注释
- 快速排序的改进方法
- Java向MySQL数据库插入时间类型Date数据时需要注意的问题
- 关于Glide显示默认图片的问题(circleImageView配合问题)