jmeter icon indicating copy to clipboard operation
jmeter copied to clipboard

Throughput Controller doesn't work if loop count is infinite

Open asfimport opened this issue 3 years ago • 0 comments

Sergey Danilov (Bug 66107): Hello Ladies and Gentlemen!

Throughput Controller doesn't work if loop count is set to infinite. I added an attachment, where you can reproduce it. It looks like an unexpected behavior.

In test plan from attachment I waited 50 requests, because of first Thread Group is 5 (threads) * 10 (seconds duration) * 0.8 (80% percents with Throughput Controller) = 40 requests, and second Thread Group is 5 (threads) * 10 (seconds duration) * 0.2 (20% percents with Throughput Controller) = 10 requests. But I get 100 requests (50 with first Thread Group and 50 with second Thread Group). Throughput Controller in this case doesn't work.

But if I set loop_count parameter in both Thread Groups to 10 (loop count == duration) – it works. Then I get 40 requests from first Thread Group and 10 requests from second Thread Group.

Tell me please, is that a wrong logic or maybe I don't understand the conception of Throughput Controller work? Thanks!

Created attachment test.jmx: test plan to reproduce the behavior

Severity: normal OS: other

asfimport avatar Jun 07 '22 07:06 asfimport