Difference between Thread Group and Stepping Thread Group

2,161 views
Skip to first unread message

Thibault DUCHATEAU

unread,
Nov 17, 2011, 11:05:26 AM11/17/11
to jmeter-...@googlegroups.com
Hi,

I don't understand the difference between my tests.

Test n°1 :

With these parameters, 15 threads start every 10 seconds. Am I right ?
So with the classic Thread Group, I got this "Active Thread over Time" graph :

Quite normal, my test are quite short, that's why threads stop before the others start and I never have 15 threads simultaneously.

Test n°2 : I use the Stepping Thread Group with these parameters :

First, I thought these parameters were similar to the previous ones but the graph tells me that I'm wrong!
I probably misunderstood something as the belowing graph doesn't look like the previous "Active Thread over Time" graph.

There must be a thread behaviour difference between the two types of "Thread Group" but I can't find it !
Can you help me ?

Thanks
Thibault
Really sorry for my english... :(

Stef

unread,
Nov 17, 2011, 12:00:56 PM11/17/11
to jmeter-plugins
Hi,

Each thread will repeat your test until it is requested to stop (eg
login>search>logout>login>search>etc.)

Stef


On Nov 17, 9:05 pm, Thibault DUCHATEAU <thibault.duchat...@gmail.com>
wrote:
> Hi,
>
> I don't understand the difference between my tests.
>
> Test n°1 :
>
> <https://lh3.googleusercontent.com/-JZM0Bkyk7B4/TsUt7mVzsUI/AAAAAAAAAa...>
> With these parameters, 15 threads start every 10 seconds. Am I right ?
> So with the classic Thread Group, I got this "Active Thread over Time"
> graph :
>
> <https://lh3.googleusercontent.com/-Mo7KTRlu5pY/TsUu7wnW_uI/AAAAAAAAAa...>
> Quite normal, my test are quite short, that's why threads stop before the
> others start and I never have 15 threads simultaneously.
>
> Test n°2 : I use the Stepping Thread Group with these parameters :
>
> <https://lh5.googleusercontent.com/-ziBN6z5pJ4g/TsUve6QknfI/AAAAAAAAAa...>

Stef

unread,
Nov 17, 2011, 12:03:12 PM11/17/11
to jmeter-plugins
Also no, in your test you start only 15 threads, 1 every 10 seconds

On Nov 17, 9:05 pm, Thibault DUCHATEAU <thibault.duchat...@gmail.com>
wrote:
> Hi,
>
> I don't understand the difference between my tests.
>
> Test n°1 :
>
> <https://lh3.googleusercontent.com/-JZM0Bkyk7B4/TsUt7mVzsUI/AAAAAAAAAa...>
> With these parameters, 15 threads start every 10 seconds. Am I right ?
> So with the classic Thread Group, I got this "Active Thread over Time"
> graph :
>
> <https://lh3.googleusercontent.com/-Mo7KTRlu5pY/TsUu7wnW_uI/AAAAAAAAAa...>
> Quite normal, my test are quite short, that's why threads stop before the
> others start and I never have 15 threads simultaneously.
>
> Test n°2 : I use the Stepping Thread Group with these parameters :
>
> <https://lh5.googleusercontent.com/-ziBN6z5pJ4g/TsUve6QknfI/AAAAAAAAAa...>

Thibault DUCHATEAU

unread,
Nov 17, 2011, 4:09:41 PM11/17/11
to jmeter-...@googlegroups.com
So :
1) Can you tell your thread to execute the test just once ?
2) How can you stop a thread with "Stepping Thread Group" ?

Thanks

2011/11/17 Stef <stephane....@gmail.com>

Stéphane Hoblingre

unread,
Nov 17, 2011, 10:28:47 PM11/17/11
to jmeter-...@googlegroups.com
Hi,

1) No
2) if a thread will run for 5 minutes, after 5 minutes the stopThread() method is invoked by JMeter. After the end of the sampler it is executing it will stop.

Stef

Thibault DUCHATEAU

unread,
Nov 18, 2011, 3:34:52 AM11/18/11
to jmeter-...@googlegroups.com
I looked at the aggregate report.
Indeed, each thread repeat the test until the end, that is to say after the "then hold load for" parameter.

Finally, my purpose was to start 15 thread, 1 every 10 seconds and execute the test just once per thread, so I think I just need the basic Thread Group. :)

Thanks a lot Stephane.

2011/11/18 Stéphane Hoblingre <stephane....@gmail.com>

Tom Childers

unread,
Nov 18, 2011, 12:36:25 AM11/18/11
to jmeter-...@googlegroups.com
Actually, the answer to (1) is Yes.  When you configure your thread to iterate 1 time only, then the contents only get executed once.  See jmeter doc section 4.1.

After that, it all depends on what kind of controller you use around your test elements.  For example, there is a Once Only controller, and a Simple Controller, which will execute the subordinate elements only one time.  The simple controller example in the JMeter doc shows this,


If the thread group is defined with only 1 iteration, then the four HTTP requests in this test will each get sent one time only.
-tdc

Stef

unread,
Nov 18, 2011, 11:50:32 PM11/18/11
to jmeter-plugins
Hi Tom,

No, the answer to (1) is NO. We are speaking about stepping thread
group, not thread group.

Stef

On Nov 18, 10:36 am, Tom Childers <tom.child...@gmail.com> wrote:
> Actually, the answer to (1) is Yes.  When you configure your thread to iterate 1 time only, then the contents only get executed once.  See jmeter doc section 4.1.
>
> After that, it all depends on what kind of controller you use around your test elements.  For example, there is a Once Only controller, and a Simple Controller, which will execute the subordinate elements only one time.  The simple controller example in the JMeter doc shows this,
>

> If the thread group is defined with only 1 iteration, then the four HTTP requests in this test will each get sent one time only.
> -tdc
>
> On Nov 17, 2011, at 7:28 PM, Stéphane Hoblingre wrote:
>
>
>
>
>
>
>
> > Hi,
>
> > 1) No
> > 2) if a thread will run for 5 minutes, after 5 minutes the stopThread() method is invoked by JMeter. After the end of the sampler it is executing it will stop.
>
> > Stef
>

> > On Fri, Nov 18, 2011 at 2:39 AM, Thibault DUCHATEAU <thibault.duchat...@gmail.com> wrote:
> > So :
> > 1) Can you tell your thread to execute the test just once ?
> > 2) How can you stop a thread with "Stepping Thread Group" ?
>
> > Thanks
>

> > 2011/11/17 Stef <stephane.hoblin...@gmail.com>

Reply all
Reply to author
Forward
0 new messages