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

No respond for sub #3

Open
husnulhamidiah opened this issue May 12, 2016 · 1 comment
Open

No respond for sub #3

husnulhamidiah opened this issue May 12, 2016 · 1 comment

Comments

@husnulhamidiah
Copy link

I am running mosquitto broker on my ubuntu server. When I test it with this command

sudo ./mqtt-bench -broker=tcp://127.0.0.1:1883 -action=subcount=50 -intervaltime=10

It show only this this message and no summary. I checked my broker, it's fine.

2016-05-12 07:46:10.338469193 +0700 WIB Start benchmark

But when i do the same test for pub. Everything goes fine.

sudo ./mqtt-bench -broker=tcp://127.0.0.1:1883 -action=pub -count=50 -intervaltime=10
2016-05-12 07:52:06.890018967 +0700 WIB Start benchmark
2016-05-12 07:52:07.406071964 +0700 WIB End benchmark

Result : broker=tcp://127.0.0.1:1883, clients=10, totalCount=494, duration=515ms, throughput=959.22messages/sec
@takanorig
Copy link
Owner

If you want to do "subscribe" mode, you have to do "publish" mode with another process.

e.g)
$ mqtt-bench -broker=tcp://192.168.1.100:1883 -action=pub -count=10000
->Start "pub" with enough "count" before "sub"

$ mqtt-bench -broker=tcp://192.168.1.100:1883 -action=sub
->Start "sub"

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