简体   繁体   English

Jmeter 中的终极线程组中的样本数会不相等吗?

[英]The sample numbers will not be equal in the Ultimate Thread Group in Jmeter?

i want to explain with a simple example.我想用一个简单的例子来解释。

there are 4 samples and 20 users.有 4 个样本和 20 个用户。 (rampup time 10 seconds.) (加速时间 10 秒。)

after test is finished:测试完成后:

in standart thread group test, the numbers will be;在标准线程组测试中,数字将是;

sample1(or request1) = 20 times样本 1(或请求 1)= 20 次

sample2 = 20样本 2 = 20

sample3 = 20样本 3 = 20

sample4 = 20样本 4 = 20

but in ultimate thread group test;但在最终的线程组测试中;

sample1 = 43样品 1 = 43

sample2 = 34样本 2 = 34

sample3 = 25样本 3 = 25

sample4 = 23样本 4 = 23

so, the number of the samplers are not equal that is a big problem for me.所以,采样器的数量不相等,这对我来说是个大问题。 because sampler1 is login sample, sample4 is logoff sapmle.因为 sampler1 是登录样本,sample4 是注销样本。 especially these two must be equal!!特别是这两个必须相等!!

the problem is not related with time values.该问题与时间值无关。 i changed the initial delay, hold load for and shutdown time but the issue wont be changed.我更改了初始延迟、保持负载和关闭时间,但问题不会改变。

if there is a way that all sampler numbers will be equal in jmeter, please tell us.如果有一种方法可以使 jmeter 中的所有采样器编号都相等,请告诉我们。

in standard thread group provide this equality but ultimate thread group doesnt.在标准线程组中提供这种平等,但最终线程组不提供。

thanks谢谢

especially these two must be equal特别是这两个必须相等

not necessarily.不必要。

Ultimate Thread Group executes Samplers upside down so when the "Hold Load For" time ends the Ultimate Thread Group shuts the threads down.终极线程组颠倒执行采样器,因此当“保持负载”时间结束时,终极线程组关闭线程。

So closer the Sampler to the top - will get more executions, closer to the bottom - less executions.采样器离顶部越近 - 执行次数越多,越靠近底部 - 执行次数越少。

If you still want to use the Ultimate Thread Group (although it should be possible to implement whatever ramp-up and/or ramp-down logic using built-in JMeter Test Elements) but strictly limit the number of requests - put all your "samples" under the Throughput Controller configured like:如果您仍然想使用终极线程组(尽管应该可以使用内置的 JMeter 测试元素实现任何加速和/或减速逻辑)但严格限制请求的数量 - 将所有“样本” “在吞吐量 Controller下配置如下:

在此处输入图像描述

If you want to have all the samplers executed and have an equal number of sampler results use the normal Thread Group instead of the plugin Ultimate Thread Group如果要执行所有采样器并获得相同数量的采样器结果,请使用普通线程组而不是插件Ultimate Thread Group

There is no interface available in the Ultimate THread Group to set the loop count. Ultimate THread Group中没有可用于设置循环计数的接口。

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

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