I am working on distributed load testing with tsung to test my mqtt message broker. My message broker can ideally handle 10k connections now. When iam testing it with tsung for 10k parallel connections i realized that my tcp connections in server are getting closed.
I set the port range and increased ulimit but still i could generate users with tsung but couldn't get 10k concurrent connections at server.
I even tested the broker with other tool called mqtt-bench in this i could generate parallel connections and here the tcp connections are not getting closed. Is there any configuration that iam missing on tsung?
and tsung version is 1.7.0, erlang version is 10.1
This is most likely you hitting the default ulimits for the server process.
Normally processes are limited to 1024 open file handles at a time (a open socket is backed by a file handle).
You can use the ulimit command to see what the current soft/hard limits are and change the limit temporarily up to the hard limit. You can make permanent changes by editing the
/etc/security/limits.conffile.