You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@jmeter.apache.org by onkelkarle <pa...@schweizer-ing.com> on 2007/05/15 13:12:12 UTC

Nest Threadgroups

Hello,

I have a question concerning the nesting of thread groups but I haven't
found any sufficient answers on the web. Maybe someone can answer me my
question:

I want to test a web application with the following the following load test:

00 - 05 min: 10 users on web application
05 - 10 min: 20 users on web application
10 - 15 min: 30 users on web application
15 - 20 min: 40 users on web application
20 - 25 min: 50 users on web application
...

I tried to set up the following test plan with nested thread groups:

+-ThreadGroup1: no of threads:5 ,  loop count 1, ramp up time: 20 minutes
   +-ThreadGroup2 (nested): no of threads:10 ,  loop count: forever, ramp up
time: 5 sec

I expected to get in the end 5x10=50 threads, but I just got 10. what did I
do wrong? Doesn't JMeter allow nested thread groups? Well the gui does at
least. Did I do something wrong?

Does anybody have a better idea how to get this load characteristics in a
test plan? Well I thought about starting 5 different JMeter instances, not
very comfortable though.

Thanks a lot
Patrick
-- 
View this message in context: http://www.nabble.com/Nest-Threadgroups-tf3757833.html#a10620804
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Nest Threadgroups

Posted by onkelkarle <pa...@schweizer-ing.com>.
Hi,

thanks for your help. I did as you advised. The disadvantage is that I had
to copy the actual test process 5 times but it was the only possibility I
found and it worked. :-)
And yes: I have to have the threads to jump up in steps since this is the
requirement for that testing job. It was not my idea ;-)

Greetings Patrick


sebb-2 wrote:
> 
> On 15/05/07, onkelkarle <pa...@schweizer-ing.com> wrote:
>>
>> Hello,
>>
>> I have a question concerning the nesting of thread groups but I haven't
>> found any sufficient answers on the web. Maybe someone can answer me my
>> question:
> 
> Thread Groups do not work when nested.
> 
>> I want to test a web application with the following the following load
>> test:
>>
>> 00 - 05 min: 10 users on web application
>> 05 - 10 min: 20 users on web application
>> 10 - 15 min: 30 users on web application
>> 15 - 20 min: 40 users on web application
>> 20 - 25 min: 50 users on web application
>> ...
> 
> Do you really need a jump in load every 5 minutes?
> 
>> I tried to set up the following test plan with nested thread groups:
>>
>> +-ThreadGroup1: no of threads:5 ,  loop count 1, ramp up time: 20 minutes
>>   +-ThreadGroup2 (nested): no of threads:10 ,  loop count: forever, ramp
>> up
>> time: 5 sec
>>
>> I expected to get in the end 5x10=50 threads, but I just got 10. what did
>> I
>> do wrong? Doesn't JMeter allow nested thread groups? Well the gui does at
>> least. Did I do something wrong?
> 
> See above.
> 
>> Does anybody have a better idea how to get this load characteristics in a
>> test plan? Well I thought about starting 5 different JMeter instances,
>> not
>> very comfortable though.
> 
> You could use 5 different thread groups inthe same JMeter plan, with
> delays of 5, 10, etc minutes
> 
> But unless you really need the load to increase by jumps, just set the
> thread count to 50 and ramp-up to 1200 (i.e. 20*60 )
> 
>> Thanks a lot
>> Patrick
>> --
>> View this message in context:
>> http://www.nabble.com/Nest-Threadgroups-tf3757833.html#a10620804
>> Sent from the JMeter - User mailing list archive at Nabble.com.
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
>> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>>
>>
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
> 
> 
> 

-- 
View this message in context: http://www.nabble.com/Nest-Threadgroups-tf3757833.html#a10655633
Sent from the JMeter - User mailing list archive at Nabble.com.


---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org


Re: Nest Threadgroups

Posted by sebb <se...@gmail.com>.
On 15/05/07, onkelkarle <pa...@schweizer-ing.com> wrote:
>
> Hello,
>
> I have a question concerning the nesting of thread groups but I haven't
> found any sufficient answers on the web. Maybe someone can answer me my
> question:

Thread Groups do not work when nested.

> I want to test a web application with the following the following load test:
>
> 00 - 05 min: 10 users on web application
> 05 - 10 min: 20 users on web application
> 10 - 15 min: 30 users on web application
> 15 - 20 min: 40 users on web application
> 20 - 25 min: 50 users on web application
> ...

Do you really need a jump in load every 5 minutes?

> I tried to set up the following test plan with nested thread groups:
>
> +-ThreadGroup1: no of threads:5 ,  loop count 1, ramp up time: 20 minutes
>   +-ThreadGroup2 (nested): no of threads:10 ,  loop count: forever, ramp up
> time: 5 sec
>
> I expected to get in the end 5x10=50 threads, but I just got 10. what did I
> do wrong? Doesn't JMeter allow nested thread groups? Well the gui does at
> least. Did I do something wrong?

See above.

> Does anybody have a better idea how to get this load characteristics in a
> test plan? Well I thought about starting 5 different JMeter instances, not
> very comfortable though.

You could use 5 different thread groups inthe same JMeter plan, with
delays of 5, 10, etc minutes

But unless you really need the load to increase by jumps, just set the
thread count to 50 and ramp-up to 1200 (i.e. 20*60 )

> Thanks a lot
> Patrick
> --
> View this message in context: http://www.nabble.com/Nest-Threadgroups-tf3757833.html#a10620804
> Sent from the JMeter - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
> For additional commands, e-mail: jmeter-user-help@jakarta.apache.org
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-user-help@jakarta.apache.org