Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Mosquitto » Issue with number of clients connected to mqtt broker(Simulating client connection from one PC to MQTT broker )
Issue with number of clients connected to mqtt broker [message #1848701] Tue, 14 December 2021 12:16
Ria Thomas is currently offline Ria ThomasFriend
Messages: 2
Registered: December 2021
Junior Member
I am trying simulate connection of more than 1000 clients (publisher/subscriber) to mqtt broker concurrently from one single PC. After the connection has reached 343 clients the socket fd has reached > 1024 and client is not receiving the connection acknowledgment from MQTT broker. Is there any way to increase available open socket fd's? How to run more than 342 clients from single machine ?

System: Ubuntu 16.04

Configurations:

cat /etc/sysctl.conf

fs.file-max = 10000000
fs.nr_open = 10000000
net.ipv4.tcp_mem = 786432 1697152 1945728
net.ipv4.tcp_rmem = 4096 4096 16777216
net.ipv4.tcp_wmem = 4096 4096 16777216
net.ipv4.ip_local_port_range = 1024 65535
cat /etc/security/limits.conf:

soft nofile 10000000
hard nofile 10000000
root soft nofile 10000000
root hard nofile 10000000
ulimit -a results

core file size (blocks, -c) 0
data seg size (kbytes, -d) unlimited
scheduling priority (-e) 0
file size (blocks, -f) unlimited
pending signals (-i) 7101
max locked memory (kbytes, -l) 64
max memory size (kbytes, -m) unlimited
open files (-n) 10000000
pipe size (512 bytes, -p) 8
POSIX message queues (bytes, -q) 819200
real-time priority (-r) 0
stack size (kbytes, -s) 8192
cpu time (seconds, -t) unlimited
max user processes (-u) 7101
virtual memory (kbytes, -v) unlimited
file locks (-x) unlimited
cat /proc/2628/limits

Limit Soft Limit Hard Limit Units
Max cpu time unlimited unlimited seconds
Max file size unlimited unlimited bytes
Max data size unlimited unlimited bytes
Max stack size 8388608 unlimited bytes
Max core file size 0 unlimited bytes
Max resident set unlimited unlimited bytes
Max processes 7101 7101 processes
Max open files 10000000 10000000 files
Max locked memory 65536 65536 bytes
Max address space unlimited unlimited bytes
Max file locks unlimited unlimited locks
Max pending signals 7101 7101 signals
Max msgqueue size 819200 819200 bytes
Max nice priority 0 0
Max realtime priority 0 0
Max realtime timeout unlimited unlimited us
Previous Topic:Minimum RAM requirements
Next Topic:Mosquitto Docker with More then one LAN
Goto Forum:
  


Current Time: Thu Apr 25 12:52:00 GMT 2024

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

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

Back to the top