mtreinish / pymqttbench

A MQTT benchmarking tool
Apache License 2.0
5 stars 4 forks source link

The bench stalls as the number of pub/sub client goes beyond 50 #1

Open akankshadixit opened 4 years ago

akankshadixit commented 4 years ago

Hi, I am facing issues in testing this Python MQTT bench. when I set --pub-client > 50 and --sub-client> 50 the command (pymqttbench --hostname localhost --sub-client 50 --pub-clinet 50 ) stalls and gives no output. I tried using a local broker that I installed on my machine and also the mosquitto broker freely available at test.mosquitto.mqtt. It is working fine for less number of publisher and subscriber clients. What can be the issue? I tried to debug but no success.

mtreinish commented 4 years ago

Sorry for the delay in responding.

It's hard to know exactly what's going on. It depends a lot on your system configuration. What that sounds like to me though is that you're hitting a ulimit on open file descriptors, processes or something else like that. Back when I wrote this tool and was using for benchmarking the MQTT deployment I was setting up that was something that I vaguely remember having an issue with in some environments and I'd have either disable the ulimit in question (or raise to be sufficiently high) on my system.

fungi commented 4 years ago

For reference, one of our related discussions was: http://eavesdrop.openstack.org/irclogs/%23openstack-infra/%23openstack-infra.2017-05-06.log.html#t2017-05-06T16:53:59