Search code examples
mosquittodebian-stretchmqtt-vernemq

How many simultaneous clients does it support vernemq or mosquitto on server?


I want to buy a vps with the following specifications:

  • 2 Core (s) 2.4 GHz
  • 8 GB of RAM
  • Debian 9 x64

and a dedicated server

  • CPU: Intel Xeon E3-1245v5 - 4 / 8t - 3.5GHz /3.9GHz
  • RAM: 16GB DDR4 ECC 2133 MHz
  • Disks: SoftRaid 2x2TB
  • Debian 9 x64

How many connected clients does each server support with vernemq or mosquitto with QOS 1?


Solution

  • Well, I have solved the doubt, for more than 1000 users you just have to modify the file /etc/init.d/mosquitto

    add the following line to the beginning of the file

    ulimit -n 20000
    

    where 20000 is the number of connections to support