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?
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?