Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the highest number of threads that is reasonable to simultaneously run in Jmeter?

I want to use the highest possible number of threads (to use less computers) but without making the bottleneck to be in the client.

like image 685
flybywire Avatar asked Apr 19 '09 09:04

flybywire


People also ask

What is the maximum number of threads in JMeter?

JMeter allows you to run multiple processes in the same box, and it's usually pretty reliable generating up to 200 threads per JMeter instance. If you need more than that, I'd recommend using multiple JMeter instances. A modern machine with some tweaking can easily generate 500 to 1000 threads.

What is 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.

What is thread lifetime in JMeter?

The ramp-up period tells JMeter how long to take to "ramp-up" to the full number of threads chosen. If 10 threads are used, and the ramp-up period is 100 seconds, then JMeter will take 100 seconds to get all 10 threads up and running. Each thread will start 10 (100/10) seconds after the previous thread was begun.

How does JMeter calculate number of threads?

Use the field "Number of Threads" to set as many threads as required for your load test (eg. 100). The field "Loop Count" is used to set the number of times each thread should run for eg. 100.


2 Answers

JMeter can simulate a very High Load provided you use it right.

Don't listen to Urban Legends that say JMeter cannot handle high load.

Now as for answer, it depends on:

  • your machine power

  • your jvm 32 bits or 64 bits

  • your jvm allocated memory -Xmx

  • your test plan ( lot of beanshell, post processor, xpath ... Means lots of cpu)

  • your os configuration (tunable)

  • Gui / non gui mode

So there is no theorical answer but following Best Practices will ensure JMeter performs well.

Note that with jmeter you can distribute load through remote testing, read:

  • Remote Testing > 15.4 Using a different sample sender

And finally use cloud based testing if it's not enough.

Read this for tuning tips:

  • http://www.ubik-ingenierie.com/blog/jmeter_performance_tuning_tips/

Read this book for doing load testing and using JMeter correctly.

like image 183
UBIK LOAD PACK Avatar answered Oct 20 '22 19:10

UBIK LOAD PACK


The JMeter Wiki reports cases where JMeter was used with as much as 1000 threads. I have used it with at most 100 threads, but the Links in the Wiki suggest resource reductions I never tried.

like image 43
Yuval F Avatar answered Oct 20 '22 19:10

Yuval F