如何让Jmeter在给定的时间内生成精确数量的样本?

huangapple go评论72阅读模式
英文:

How can I make the Jmeter process exact number of samples within the given duration of time?

问题

我必须在一个小时的持续时间内精确处理26.5K个样本,作为非GUI模式下的浸泡测试的一部分。
我尝试了一些方法,但无法在一个小时内精确处理26.5K个用户。

当将26.5K均匀分配在一个小时内时,我可以每秒获得7.36个用户。

  1. 所以我尝试了提供7个用户,rampup-1秒,loopcount-无限,duration-1小时,同时将恒定吞吐量定时器设置为420 req/sec,但最终总处理样本数为25118。
  2. 我甚至尝试了提供8个用户,rampup-1秒,loopcount-无限,duration-1小时,同时将恒定吞吐量定时器设置为480 req/sec,但最终总处理样本数为28700。

如果我能得到任何其他方法,以便我可以精确处理26.5K用户或接近这个数字,那将非常有帮助。

英文:

I have to exactly process 26.5K samples in an hour duration as part of soak test in non GUI mode.
I have tried some approaches but I couldn't exactly process 26.5K users in an hour duration.

When 26.5K is equally divided for an hour, I could get 7.36 users per second

  1. So I tried giving 7 users, rampup-1sec, loopcount-infinite and duration-1hour, with constant throughput timer set to 420 req/sec but it ended up giving me total processed samples as 25118
  2. I even tried giving 8 users, rampup-1sec, loopcount-infinite and duration-1hour, with constant throughput timer set to 480 req/sec but it ended up giving me total processed samples as 28700

Would be helpful if I could get any other approach where I could exactly process 26.5K users or somewhere around it.

答案1

得分: 1

最精确的方法似乎是Throughput Shaping Timer

  1. 将吞吐量稍微提高,即7.37。

  2. 此外,将您的Sampler放在Throughput Controller下,并将Total Throughput设置为26500,这样您就不会获得更高的Sampler数量。

英文:

The most precise way seems to be Throughput Shaping Timer

  1. Make throughput a little bit higher, i.e. 7.37

    如何让Jmeter在给定的时间内生成精确数量的样本?

  2. Additionally put your Sampler under the Throughput Controller and set Total Throughput to be 26500 so you won't get higher samplers number:

    如何让Jmeter在给定的时间内生成精确数量的样本?

huangapple
  • 本文由 发表于 2023年6月26日 20:13:39
  • 转载请务必保留本文链接:https://go.coder-hub.com/76556586.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定