emqx / emqtt-bench

Lightweight MQTT benchmark tool written in Erlang
https://www.emqx.com
Apache License 2.0
511 stars 132 forks source link

client(43769): connect error - {tcp_closed,#Port<0.99717>} client(43769): EXIT for {shutdown,tcp_closed} #247

Open AdityaYadav29 opened 3 months ago

AdityaYadav29 commented 3 months ago

I have 3 node deployment of EMQX running in aws eks. I am running the emqtt-bench for load testing with ./emqtt_bench conn -h nlbIp -p 1883 -k 60000 -c 50000 -i 30.

I am getting the above error in emqtt-bench.

In the client machine. I have set the below ulimit -n 200000 sudo sysctl -w net.ipv4.ip_local_port_range="1025 65534" echo 1000000 > /proc/sys/fs/nr_open

qzhuyan commented 3 days ago

I guess the LB closed the conn because of idling as you only connect but no sub/pub ops and you also use a very large keep alive timer (60000s) prevents clients to send heartbeat to make the LB decide to keep the TCP alive.