Imi
Imi

Reputation: 29

Apache Jmeter Load Test to achieve that only one thread starts until test achieve the desired number of users

I have implemented a testplan in Apache Jmeter to measure how the system serves the request with XY users.

Steps:

When I configure thread group with the GIVEN number of users I can see the Jmeter stars thread within the given time range. Like this:

  1. 1 user --> starts 1 job
  2. 2 users --> starts 1 + 1 job
  3. 3 users --> starts 1 + 1 + 1 job ... So When the test ends I have 6 started job instead of 3 :(

So my question is:

How it is possible that every time starts only one job within the given time range to achieve the predefined user number?

For example:

Here is the Expected Active Users Count, where you can see that when the test achieved the 10 users there are more than desired job started because the active users' number increased +1 after the previous thread ends.

Expected Active Users Count

Upvotes: 0

Views: 171

Answers (1)

Dmitri T
Dmitri T

Reputation: 168052

If you need to execute a job by a user only once it's better to consider switching to the "normal" Thread Group configured like:

enter image description here

If you want to continue using the Ultimate Thread Group - put your request(s) which trigger the job creation under the Once Only Controller, but in this case you will see a lot of error messages in the jmeter.log file (which can be supressed if you're fine with this approach)

Upvotes: 1

Related Questions