英文:
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个用户。
- 所以我尝试了提供7个用户,rampup-1秒,loopcount-无限,duration-1小时,同时将恒定吞吐量定时器设置为420 req/sec,但最终总处理样本数为25118。
- 我甚至尝试了提供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
- 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
- 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。
-
将吞吐量稍微提高,即7.37。
-
此外,将您的Sampler放在Throughput Controller下,并将Total Throughput设置为26500,这样您就不会获得更高的Sampler数量。
英文:
The most precise way seems to be Throughput Shaping Timer
-
Make throughput a little bit higher, i.e. 7.37
-
Additionally put your Sampler under the Throughput Controller and set Total Throughput to be 26500 so you won't get higher samplers number:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论