ApacheJMeter动态负载测试 [英] ApacheJMeter dynamic load testing

查看:108
本文介绍了ApacheJMeter动态负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经构建了一个对资源需求(即http访问次数)作出反应的应用程序.为了测试它,我想使用ApacheJMeter以编程方式生成http GET请求.不幸的是,我找不到在测试用例的预定义段期间生成不同数量的http GET的任何可能性. 测试应该看起来像这样:

seconds 0 to 30: 1000 GET requests per second
seconds 31 to 60: 5000 GET request per second
seconds 61 to 90: 15000 GET request per second
seconds 91 to 120: 5000 GET request per second
seconds 121 to 150: 1000 GET request per second

我希望有可能,谢谢.

解决方案

吞吐量调整计时器插件允许以不同的速率设置多个流量段

https://jmeter-plugins.org/wiki/ThroughputShapingTimer/

I've build an application which reacts on resource demand (i.e., number of http accesses). To test it, I want to generate http GET requests programmatically with ApacheJMeter. Unfortunately I cannot find any possibility to generate different numbers of http GET's during predefined segments of the test case. A test should look like that for example:

seconds 0 to 30: 1000 GET requests per second
seconds 31 to 60: 5000 GET request per second
seconds 61 to 90: 15000 GET request per second
seconds 91 to 120: 5000 GET request per second
seconds 121 to 150: 1000 GET request per second

I hope this is possible, thank you in advance.

解决方案

Throughput Shaping Timer plugin allows for setting up multiple segments of traffic at different rates

https://jmeter-plugins.org/wiki/ThroughputShapingTimer/

这篇关于ApacheJMeter动态负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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