Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Benefit of 'Delay Thread creation until needed' option in Jmeter

Can anyone please tell me the benefits of "Delay Thread creation until needed" option in Jmeter - Thread Group? I know the use of this option. However, I would like to know how can this option impact the performance test?

like image 541
Redefining QA Avatar asked Aug 06 '13 11:08

Redefining QA


People also ask

What is delay thread creation until needed?

Delay Thread Creation Until Needed – This is to be checked when the ramp-up delay and startup delay are to be performed even before the thread group is created. By default, this is not checked. Specify Thread lifetime – Here we can give the duration and startup delay to the threads.

What is thread delay in JMeter?

Each thread will start 10 (100/10) seconds after the previous thread was begun. If there are 30 threads and a ramp-up period of 120 seconds, then each successive thread will be delayed by 4 seconds.

What will be the delay between starting users in JMeter?

For example, if you enter a Ramp-Up Period of 5 seconds, JMeter will finish starting all of your users by the end of the 5 seconds. So, if we have 5 users and a 5 second Ramp-Up Period, then the delay between starting users would be 1 second (5 users / 5 seconds = 1 user per second).

What is duration and startup delay in JMeter?

Here we need to set the period to reach the defined Number of Threads starting from 1 thread. To create a more sophisticated loading profile, we can also specify the thread lifetime. This setting means 2 things: Startup delay – how much time JMeter waits to start a thread. Duration – how long it runs for.


1 Answers

Here's a useful link: http://jmeter.512774.n5.nabble.com/Delayed-thread-creation-was-OnDemand-ThreadGroup-td5714355.html

Focus when he says: "When this is selected, the threads in a thread group are only created and started when they are due to run. The startup delay (if any) and ramp-up delay are now performed before the thread data is created.

This means that the memory requirements are proportional to the number of concurrent active threads, rather than the total thread count. Provided that the active count does not grow too large, it should be possible to run tests with very large maximum thread count.

If "Delayed thread creation" is not selected, JMeter behaves as before, i.e. all thread resouces are created at the start of a test. "

Hope it helps!

like image 138
Deep Sehgal Avatar answered Nov 29 '22 23:11

Deep Sehgal