改变由每次迭代的Apache台使用POST数据 [英] Changing POST data used by Apache Bench per iteration

查看:184
本文介绍了改变由每次迭代的Apache台使用POST数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用 AB 做一些负载测试,并且提供的是非常重要的查询字符串(或POST)参数请求之间切换。

I'm using ab to do some load testing, and it's important that the supplied querystring (or POST) parameters change between requests.

即。我需要像网址请求:

I.e. I need to make requests to URLs like:

http://127.0.0.1:9080/meth?param=0
http://127.0.0.1:9080/meth?param=1
http://127.0.0.1:9080/meth?param=2
...

要正确行使申请。

AB似乎只能阅读所提供的POST数据文件一次,在启动,试运行期间所以更改其内容不是一个选项。

ab seems to only read the supplied POST data file once, at startup, so changing its content during the test run is not an option.

有什么建议?

推荐答案

您会需要使用一个功能更全面的基准测试工具一样的 JMeter的这一点。

You're going to need to use a more full-featured benchmarking tool like jMeter for this.

这篇关于改变由每次迭代的Apache台使用POST数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆