RahlMCD
RahlMCD

Reputation: 11

Jmeter: How to combine Constant Throughput Timer with ForEachController?

I'm pretty new in the area of performance testing via Jmeter, and currently in my project I'm struggling with the following issue:

In my current project I have the following test plan (Jmeter 5.5):

The details I'm trying to use:

My questions here are:

I ve tried to add a Precise Throughput timer, even tried removing the for each in order to have the http sampler alone, keep getting same result.

Upvotes: 0

Views: 72

Answers (1)

Ivan G
Ivan G

Reputation: 2707

The throughput depends on your system under test response time.

You can reach 500 requests/sec with 500 users only if response time will be 1 second sharp (or less)

Constant Throughput Timer can only pause JMeter threads to limit the requests execution rate to the given value.

Try adding more threads and if the system under test supports the given load you should see throughput increase. Alternatively consider migrating to Concurrency Thread Group and Throughput Shaping Timer combination, they can be connected via Feedback Function and it will allow JMeter to kick off more threads if the current amount is not sufficient.

Also regarding using Beanshell - it's some form of a performance anti-pattern, since JMeter 3.1 you should be using JSR223 Test Elements with Groovy

Upvotes: 0

Related Questions