Delayed thread creation (was OnDemand ThreadGroup)

Previous Topic Next Topic
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view

Delayed thread creation (was OnDemand ThreadGroup)

In version 2.7 and earlier, JMeter created all the threads and
associated data at the start of the test.
Startup delay and ramp-up were implemented by each thread pausing as necessary.

This works well for tests where almost all threads are active for most
of the run.

But it's not good for tests with a large number of threads and where
the ramp-up time is much longer than the time it takes to run a single
In such tests, the number of concurrently active threads is much lower
than the total number of threads.

So we've been experimenting with creating the per-thread resources at
the time they are needed.

After several iterations, we now have a development version of JMeter
(*) that offers a "Delayed thread creation" option on the Thread Group
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.

Note: this was originally implemented as an "On Demand ThreadGroup",
but it was felt that "On Demand" could have implied that extra threads
could be created during a test run.
The implementation still requires the maximum thread count and ramp up
to be defined in advance.

(*) r1373042 and later for any developers who want to try this out.

To unsubscribe, e-mail: [hidden email]
For additional commands, e-mail: [hidden email]

Reply | Threaded
Open this post in threaded view

Re: Delayed thread creation (was OnDemand ThreadGroup)

This post has NOT been accepted by the mailing list yet.

I have a threadgroup which is having 120000 users.Here first i am adding a constant timer of 30 seconds.Then sending an http request after that.That is the number of active threads should be 0 till 30 seconds rite.
But the threads were getting created when i start running the threadgroup.Why is it so?
I am using jmeter 2.8.2
Kindly reply.
Stanly Thomas