JMeter Loop Count

JMeter Loop Count

jmeter loop count and scheduler
jmeter get loop count variable
jmeter loop count and ramp up
ramp-up period in jmeter, with example
samples in jmeter
target concurrency in jmeter
jmeter example
jmeter threadgroup num_threads

I want to run a JMeter test with a number of concurrent threads with each thread sending a request every 10 seconds.

These are my thread properties.

Number of Threads: 10

Ramp-Up Period: 10

Loop Count: 1

Result: 10 requests divided over 10 seconds, so every second a request and exactly what I want.

Now I want to run this test for 3 times(30 seconds). So I set the Loop Count to 3.

But the result is: 30 requests in 10 seconds. This is strange, because I would expect to run this for 30 seconds and get 1 request per second.

How can I achieve this with JMeter?

My final goal is to run this test for a long period and also increase the Number of Threads.

How to do this with JMeter?


I researched this today and came to this conclusion: The Loop Count setting is a complete misnomer. It doesn't actually loop in any sort of chronological sense, even if your Test Plan has Run Thread Groups consecutively checked. What it does do is multiply your thread group and run all multiples concurrently. Therefore, the Ramp-Up Period is only respected once, and NOT once per "loop" - there is no temporal loop!

An explanation with graphs can be found here: http://pro-programmers.blogspot.com/2009/07/jmeter-max-threads-with-rump-up-and.html

Explaining JMeter Loop Count and Jmeter Thread Count, I researched this today and came to this conclusion: The Loop Count setting is a complete misnomer. It doesn't actually loop in any sort of  In my experience with Jmeter if you set. Number of Threads: 10. Ramp-Up Period: 10. Loop Count: 1. you create 10 threads into 10 seconds so you create 1 thread every second. With loop count of 1 you repeat this once.


Seems that the most simplest ways to control throughput in your tests is using either standard "out-of-box" Constant Throughput Timer or custom Throughput Shaping Timer from jmeter-plugins collection.

In both the cases structure of the test will be like the following:

Thread Group
Number of Threads = N
Ramp-up Period = N
Loop Count = 1
    Constant Throughput Timer
    Target Throughput = 60
    Calculate Throughput based on = "all active threads in current thread group"
    . . .
    Loop Controller
    Loop Count = M
        . . .
        HTTP Request
        . . .

Here Loop Controller defines number of iterations.

Looks like both the timers are not absolutely precise as well as both are a bit differently configurable:

Here is also a kind of practical example how to vary the throughput.

JMeter Loop Count, Thread Count (Number of Users you want for execution) – Setting the Ramp-Up Time – Loop Count (Defined or Forever) – Scheduler  If we add a HTTP request under the Loop Controller, then the specific sample will loop to the server for the specified number of times. For example, if you add one HTTP Request to a Loop Controller with a loop count of two, and configure the Thread Group loop count to three, JMeter will send a total of 2 * 10 = 20 HTTP Requests.


In my experience with Jmeter if you set

Number of Threads: 10

Ramp-Up Period: 10

Loop Count: 1

you create 10 threads into 10 seconds so you create 1 thread every second. With loop count of 1 you repeat this once. But if you increase loop count I think that you don't create new threads but repeat jmeter elements procedure in the Thread Group therefore the time beetween the request isn't 30 seconds but just over 10s. If you want to create 30 threads within 30 seconds you have to set

Number of Threads: 30

Ramp-Up Period: 30

Loop Count: 1

If you want to repeat 10 threads for 3 times with ramp- up of 10 seconds you should insert a Timert->Constant Timer with thread delay of 10000 ms so you obtain 30 requests in 30 seconds (really you should consider the time of executions of the task)

5 must know features of Thread Group in Jmeter, If you enter a loop count value of 1, then JMeter will run your test only once. To have JMeter repeatedly run your Test Plan, select the Forever checkbox. In most​  In the example shown below, the Thread Group has a loop count of 5 and loop controller containing Changes Request Sampler has a loop count of 2. In Image 3 which does not use any logic controller, the number of http requests made is 15. In Image 4, which uses Loop Controller, teh number of http requests made is 20 as


User's Manual: Building a Web Test Plan, By default, the thread group is configured to loop once through its elements. and Table Listeners, and will count towards the error %age for example in the  Loop Count vs Number of Threads. Good day, I have 10 accounts to use in load testing our application. I just want to know if my Jmeter test will behave in the same manner if: 1.


User's Manual: Elements of a Test Plan, In JMeter, we can't always tell the number of concurrent users we'll get for each Thread Group configuration. There are a lot of criteria that  Loop is a continuous process that shall continue till the loop count is reached. "Time cap" is not a term used in the JMeter docs, but assuming what you mean, it can be set between loops by using Test Action or other JMeter mechanisms if you need fine-grained control.


Loop Count, Add a Loop Controller and set the “Loop Count” to 5; Define a Counter inside the Loop Controller and configure it as follows: “Start” - this is initial  I am trying to do some test with jMeter. I have CSV file with the urls and want to iterate over all of them and make HTTP Request. I have achieved that by typing exact number of urls in the ThreadGroup in Loop Count field.


How to Use a Counter in a JMeter Test, Loop Count -1 in Thread Group means that all threads will execute samplers forever. Having 2 threads with 2 seconds ramp-up doesn't  We can use the getIteration() function to get the thread loop count in properties and also in shell. in property


How Loop count = -1 works in jmeter, Add one HTTP Request to a Loop Controller with a loop count 50; Configure the Thread Group loop count to 2; Then, JMeter will send a total of  4) Loop Count. Using Loop Count you can specify the number of times to execute the Performance Test. You can select check-box “forever”, it will keep on executing same Test script in loop until you manually stop the execution. There is also an option to manually define the loop count.