Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

同一线程中多个sub针对多个topic的监听 前几个都会返回connection failed #37

Open
redbiscuit opened this issue May 28, 2018 · 10 comments

Comments

@redbiscuit
Copy link

redbiscuit commented May 28, 2018

我想在一个线程中 添加多个sub sample,都是对应同一个服务器,但是每个对应不同的topic
比如:

  1. topic: /akResp/2ed384d0-6812-451a-a515-ddc408e33556
  2. topic: /akResp/${SessionId}
  3. topic: /akResp1/#
    在执行过程中,前面2个都会返回connection failed,只有第三个可以返回数据。
    这个是因为监听有冲突吗?
    1
    如果把share connection打钩 那么第一个topic应该收到的信息却被第三个topic收到。。。
@XmeterNet
Copy link

插件版本是什么版本呢?

@redbiscuit
Copy link
Author

版本是V1.0

@XmeterNet
Copy link

方便的话,发一下脚本,或者详细截图一下看看?

@redbiscuit
Copy link
Author

1
2
3
4
5
6
7

@redbiscuit
Copy link
Author

如果不能对topic进行区分 那么不管多少线程的sub sample都会收到所有的监听的信息

@redbiscuit
Copy link
Author

我是想通过对一个监听topic /akResp/#中的响应进行提取出session 然后监听每个线程单独的topic /akResp/${session}, 但是目前没有对topic进行区分,导致所有share conn的线程响应信息都会写到最后一个sub sample里去。

@XmeterNet
Copy link

试试禁用后面俩个sub,只保留第一个sub会不会connection failed

@redbiscuit
Copy link
Author

不会failed,因为我一开始就是一个pub 一个sub, 就没有问题 ,但是添加多个sub 问题就来了

@XmeterNet
Copy link

方便的话,发一下jmeter.log看看

@redbiscuit
Copy link
Author

jmeter.log

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants