Maximum number of connections supported by mosquitto broker

3,833 views
Skip to first unread message

kushal bhatta

unread,
Apr 27, 2017, 8:28:33 AM4/27/17
to MQTT
HI,
Could anyone please tell me  the maximum number of connection that is well supported by mosquitto broker?
Thanks,
Kushal

kushal bhatta

unread,
Apr 27, 2017, 10:34:19 AM4/27/17
to MQTT


I am testing 200 clients run as different threads which is communicating to mosquitto broker .My scenario is  out of 200 clients i am keeping 12 publishers and rest are subscribers.So it may happen that for one topic published there may be many subscribers.So , in this case,when i am publishing the last message and the last subscriber client,there is a time delay of around 4 minutes.Is it an acceptable behaviour? Here i am using paho clients and so most of the functionality is achieved by paho client itself

Roger Light

unread,
Apr 27, 2017, 10:39:06 AM4/27/17
to MQTT
Hi Kushal,

200 clients should be no problem.

Cheers,

Roger
> --
> To learn more about MQTT please visit http://mqtt.org
> ---
> You received this message because you are subscribed to the Google Groups
> "MQTT" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to mqtt+uns...@googlegroups.com.
> To post to this group, send email to mq...@googlegroups.com.
> Visit this group at https://groups.google.com/group/mqtt.
> For more options, visit https://groups.google.com/d/optout.

kushal bhatta

unread,
Apr 27, 2017, 2:57:11 PM4/27/17
to MQTT, ro...@atchoo.org
So,
Is the delay iam getting a usual  one or  is  it anabnormal  behaviour?  i am getting  at  only  when  therey  is  many  subscriber  to the same topic  then i  am seeing  this type  of behaviour in  the  log.Another  thing  is  how  many max  connection   would  it support  ?

kushal bhatta

unread,
Apr 28, 2017, 1:48:02 AM4/28/17
to MQTT
here is the wireshark packet tracer file which i am attaching for 300 connections i put a timeout of 5 min on the client side after which all the clients would stop sending publish message to the broker .But still the broker keeps on publishing message to the client despite client not publishing .I the broker retrying to send messages again?

Edit: is wireshark file not supported for upload?

kushal bhatta

unread,
Apr 28, 2017, 1:55:02 AM4/28/17
to MQTT
Reply all
Reply to author
Forward
0 new messages