简体   繁体   English

使JMeter与吞吐量调整计时器和并发线程组一起使用

[英]Getting JMeter to work with Throughput Shaping timer and Concurrency Thread Group

I am trying to shape a JMeter test involving a Concurrency Thread Group and a Throughput Shaping Timer as documented here and here . 我正在尝试构建一个JMeter测试,该测试涉及Concurrency Thread GroupThroughput Shaping Timer ,如此此处所述 the timer is configured to run ten ramps and stages with RPS from 1 to 333. I want to set up the Concurrency Thread Group to use the schedule feedback function and added the formula in the Target concurrency field (I have updated the example from tst-name to the actual timer name). 计时器配置为以10到333的RPS运行10个斜坡和阶段。我想设置并发线程组以使用计划反馈功能,并在目标并发字段中添加公式(我已将示例从tst-名称为实际的计时器名称)。 ramp-up time and steps I have set to 1 as I assume the properties are not that important if the throughput is managed by the timer; 我将加速时间和步骤设置为1,因为我假设如果吞吐量由计时器管理,则属性并不那么重要; the Hold Target Rate time is 8000, which is longer than the steps added in the timer (6200). 保持目标速率时间为8000,比计时器(6200)中添加的步骤更长。

When I run the test, it ends without any exceptions within 3 seconds or so. 当我运行测试时,它将在3秒钟左右无任何异常的结束。 The log file shows a few rows about starting and ending threads but nothing alarming. 日志文件显示有关启动和结束线程的几行,但没有任何警报。 The only thing I find suspicious is the Log entry "VirtualUserController: Test limit reached, thread is done plus thread name. 我唯一可疑的是日志条目"VirtualUserController: Test limit reached, thread is done线程加线程名。

I am not getting enough clues from the documentation linked here to figure this out myself, do you have any hints? 我没有从此处链接的文档中获得足够的线索来自己解决这个问题,您有什么提示吗?

According to the documentation rampup time and steps should be blank : 根据文档,启动时间和步骤应为空白

When using this approach, leave Concurrency Thread Group Ramp Up Time and Ramp-Up Steps Count fields blank" 使用这种方法时,请将“并发线程组启动时间”和“启动步骤计数”字段留为空白”

So your assumption that setting them to 1 is OK, seems false... 因此,您假设将它们设置为1是可以的,这似乎是错误的...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM