What is the meaning of "Thread Group" in JMeter?
Solution 1
For explanation see:
A thread group
is a set of threads executing the same scenario. Set the number of iterations in the configuration.
Thread behaviour is defined according to ramp up and destroyed once the number of iterations per thread has elapsed.
Note that from version 2.8, you will be able to delay thread creation until the time the thread must start working, this will be adapted to tests that use very short lived threads and many threads.
Thread groups can be seen as a set of Virtual Users but not necessarily. It can be something else depending on how you develop your test.
Solution 2
As I understood (What I wanted to know), All the operations in a JMeter thread group run sequentially once per each thread and iteration. So it means each of operations in a thread group does not run in its own separate set of threads, but it shared each thread with the other operations in its thread group.
For example,
- Thread Group 1
- Operation 1
- Operation 2
- Operation 3
If we have scheduled this thread group Thread Group 1 to run in 3 threads, what happens is,
- Operation 1, Operation 2, and Operation 3 will execute in thread 1.
- Operation 1, Operation 2, and Operation 3 will execute in thread 2.
- Operation 1, Operation 2, and Operation 3 will execute in thread 3. etc
Previously I was not sure whether each of these operations run on its own separate thread.
Solution 3
Thread = simulated user.
So thread group = users.
Check out jMeter Plugins thread group controllers with far more control than default thread group.
Related videos on Youtube
Comments
-
Manjula over 1 year
I don't clearly understand what is the meaning of a "Thread group" in JMeter. Does that means all the tests (Java requests etc) belong to a certain thread group run in a one thread or each test in that thread group runs in a separate thread? I couldn't get a clear understanding about this from JMeter documentations or googling.
-
UBIK LOAD PACK over 11 yearsYou understood well. YOu should put this in your question and accept the answer that is the best for you.
-
wmorrison365 over 10 yearsGood link. That cleared it up for me and it wasn't exactly how I'd thought.