mqtt-jmeter icon indicating copy to clipboard operation
mqtt-jmeter copied to clipboard

Cannot establish different mqtt connections in loops

Open yongweizhao opened this issue 2 years ago • 2 comments

我想测试这样一种情况:循环3次,每次创建5个mqtt连接。 自增计数器: image mqtt-connect: image 结果: image image 在单次线程组中自增id没有起作用 即:在第一次循环中,线程池创建了三个client并有对应的命名clientId,在后面的两次循环中,创建的client跟第一次的clientId完全一样,这与预期的每次循环创建新的连接不符。

yongweizhao avatar Aug 03 '23 06:08 yongweizhao

补充:用的最新的2.0版本插件,eqmx版本V4.4

yongweizhao avatar Aug 03 '23 06:08 yongweizhao

In the current implementation, the established connection in the same thread will be reused. Please try creating connections in multiple threads

chongyuanyin avatar Jan 02 '24 10:01 chongyuanyin