Oh no! Where's the JavaScript?
Your Web browser does not have JavaScript enabled or does not support JavaScript. Please enable JavaScript on your Web browser to properly view this Web site, or upgrade to a Web browser that does support JavaScript.

MQTT broker keeps crashing under load

Last updated on 3 hours ago
K
KevinSenior Member
Posted 3 hours ago
Username: IoTDeveloper
Posted: 6 days ago
Running mosquitto mqtt broker on a vps and it keeps crashing when i have more than 50 clients connected. Each client publishes data every 5 seconds. Server has 2gb ram which should be plenty right? Getting really frustrated with this, any suggestions?
K
KevinSenior Member
Posted 3 hours ago
Reply by: MessageQueue
2gb should definately be enough for 50 clients. Check your mosquitto logs for any errors. Also look at your persistence settings - if you have QoS 1 or 2 messages with persistence enabled, that could cause issues. Try increasing max_connections in mosquitto.conf. Another thing to check is if you're using websockets, those can be more resource intensive than regular mqtt. What version of mosquitto are you running?
You can view all discussion threads in this forum.
You cannot start a new discussion thread in this forum.
You cannot reply in this discussion thread.
You cannot start on a poll in this forum.
You cannot upload attachments in this forum.
You cannot download attachments in this forum.
Sign In
Not a member yet? Click here to register.
Forgot Password?
Users Online Now
Guests Online 36
Members Online 0

Total Members: 19
Newest Member: bokovac