Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Paho » performance issues(golang paho client)
performance issues [message #1807454] Thu, 30 May 2019 13:14
matt powers is currently offline matt powersFriend
Messages: 1
Registered: May 2019
Junior Member
Hello,

I am attempting to benchmark MQTT for use with an application. I am wondering if I'm doing something wrong...

I setup Mosquitto with TLS and Client x509 certs. I used the GoLang library to connect and publish / receive.

This is all running on localhost, at QoS 1.

if i have 1 publisher and 1 subscriber, I can get 30,000 messages per second. Which is great.

But if I add a second publisher (in a separate exe) to the same topic, my throughput drops to around 2,000 messages per second.

This seems crazy to me. Other scenarios i am seeing..

if I have a subscriber receiving many messages, and he attempts to publish (i had him publish a status message every 15 seconds), it will block, and throughput dies again. (at QoS 1, 0 did better, but even that sometimes got slow)

From looking over some of the github code, I think the issue might be lock contention on the messageIds slice.

Am I doing this wrong? is the performance supposed to drop off like that?

Previous Topic:Proxy aware
Next Topic:MQTT-SN QoS1 clients with changing IP addresses
Goto Forum:
  


Current Time: Fri Mar 29 09:23:54 GMT 2024

Powered by FUDForum. Page generated in 0.05344 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top