-
This comes from a exchange in discord which I think is worth having as general recipe or be aware: How can we reuse connections between iterations using |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
Well there are 2 things to take into consideration:
In summary, if you use |
Beta Was this translation helpful? Give feedback.
Well there are 2 things to take into consideration:
JMeter, by default, opens and closes iteration on each iteration. With standard JMeter Thread Group you can set either to use same user or not in each iteration, which allows reusing HTTP connections (if using HTTP 1.1 and keep-alives). But,
rpsThreadGroup
, as mentioned in user guide, internally uses Concurrency Thread Group, which doesn't provide such option. So, to overcome this limitation the only option is to set the JMeter propertyhttpclient.reset_state_on_thread_group_iteration
to false.Even with previous setting, you have to take into consideration that HTTP connections are tied to Threads. In this regard
rpsThreadGroups
dyn…