Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do threads and number of iterations impact test and what is JMeter’s max. thread limit

  1. Would you please tell me the max limit of no. of threads that i can use in JMeter 2.4 for conducting a load test?

  2. Is there any difference in taking all threads in a single loop or by taking less no. of threads and initialize loop to achieve same no. of users/threads?

Example:

No. of threads=500 Ramp up=1000 Loop=1  

whether it is same as

No. of threads=50 Ramp up=100 Loop=10 

or is there any difference in terms of result?

like image 503
Parvez Avatar asked Aug 20 '10 06:08

Parvez


People also ask

What is thread iteration limit in JMeter?

"50 threads, loop 10" Means only 50 threads AT THE SAME TIME doing the loop TEN TIMES. Show activity on this post. There is no limit on Thread execution in Jmeter .

How does JMeter determine number of threads?

Good idea would be setting number of threads (virtual users) for the Thread Group to be more or less equal to the number of devices which simultaneously connect to the backend. Once done you should be able to limit JMeter's request rate to 166 requests per minute using Constant Throughput Timer.

What is the max number of users you can test on JMeter?

In conclusion, we can say that you can simulate up to 10,000 users on a JMeter load test even on a regular laptop.

What is the difference between number of threads and loop count in JMeter?

Number of threads: 10, Ramp-Up period: 10 seconds and Loop Count: 1 means that JMeter will take 10 seconds to get all the 10 threads up and running. Each thread will start after 1 (10/10) second after the previous thread had begun. A total of 10 requests will be made, since loop count is 1.


2 Answers

  1. The max number of threads is determined by a lot of factors, see this answer https://stackoverflow.com/a/11922239/460802

  2. There is a big difference in what you are proposing.

    • "500 threads, Loop 1 " Means 500 threads AT THE SAME TIME doing the loop ONCE.
    • "50 threads, loop 10" Means only 50 threads AT THE SAME TIME doing the loop TEN TIMES.

In theory you get the same number of results (500), but you are hitting the server in a very different manner.

like image 154
BlackGaff Avatar answered Sep 24 '22 00:09

BlackGaff


Maximum number of users depends of your OS,free RAM and connection. Win XP is limited to 3000 processes at the same time. On Linux is more than 3000 but I don't how much. Be careful that you test server and if you start 3000 thread on your machine require a lot of resources and the test will not be real. I pref fare to start maximum 300 users per machine. If you want to increase the number of users than use distributed testing (use more machine as DoS attack). In theory is the same number of request but the time complexity is not the same.

like image 21
Ballon Avatar answered Sep 26 '22 00:09

Ballon