'How to setup Concurrency Thread Group

I have following test plan to test concurrent user load test of a website -

enter image description here

Configuration set as -

Target Concurrency = 10
Ramp up Time = 1 
Ramp up step count = 1
Hold Target rate time = 6

So it's creating confusion, what I am expecting that it will send only 10 requests at a time in 1 second but the result is it sends first 10 request at a time in 1 second and continue sending requests till 60 seconds.

Why it is so?



Solution 1:[1]

Keep Hold Target Rate Time to 1 sec to match your expectations.

The graph should reflect the settings you made.

Note: In the graph you shared, it is clearly visible that you kept Hold Target Rate Time to 60 sec (reflected in the graph also) which resulted in 60 seconds execution after ramp-up time.

Reference:

Refer Concurrency ThreadGroup section in the link

Solution 2:[2]

as per requirements for simulating 10 requests at a time in 1 second

Target Concurrency = 10
Ramp up Time = 1
Ramp up step count = 1
Hold Target rate time = 1

Keep Hold Target rate time till you want to run to test.
e.g 1 sec for running test plan for 1 sec, 1 min to run test plan for 1 min.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Naveen Kumar R B
Solution 2 Ashish Mohan