在Jmeter中以突发模式进行负载测试 [英] Loadtesting in burst mode in Jmeter

查看:89
本文介绍了在Jmeter中以突发模式进行负载测试的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我将负载测试运行1小时,在两次测试之间,我希望场景以15分钟的固定间隔运行1分钟.

I am running my load test for a duration of 1 hour,in between the test I want a scenario to run for a duration of 1 minutes at regular interval of 15 minutes.

在jmeter中,当前我可以模拟除突发模式以外的所有其他情况. 如何将延迟保持15分钟,并在1分钟的持续时间内触发请求? 如何获得突发的TPS?当前,我必须手动触发jmeter脚本.

In jmeter,currently I am able to simulate for all the others scenarios except for the burst mode. How do I keep the delay for 15 minutes and trigger the request for duration of 1 min? How do I achieve the TPS for the burst? Currently I have to manually trigger jmeter script.

推荐答案

我建议您执行以下操作:

I would suggest doing the following:

  1. 添加一个单独的线程组.
  2. 根据需要配置加速和线程计数.
  3. 添加常量计时器,将线程延迟"设置为90万(15分钟) = 900秒,1秒= 1000毫秒)
  4. 添加运行时控制器,将运行时设置为60.
  5. 添加环路控制器,将循环计数"设置为永远".
  6. 将突发测试逻辑放在回路控制器下.
  7. 如果您需要在高峰期间定义每秒请求数,请使用恒定吞吐量计时器
  1. Add a separate Thread Group.
  2. Configure ramp-up and thread count as required.
  3. Add a Constant Timer, set Thread Delay to 900 000 (15 minutes = 900 seconds, 1 second = 1000 ms)
  4. Add a Runtime Controller, set Runtime to 60.
  5. Add a Loop Controller, set Loop Count to Forever.
  6. Place your burst test logic under the Loop Controller.
  7. If you need to define requests per second rate during spikes use Constant Throughput Timer

这篇关于在Jmeter中以突发模式进行负载测试的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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