Facing error ‘Server closed connection without DISCONNECT’ when HiveMQ client tries to connect to EMQX broker

Hi everyone,

Am using an android based client to publish to EMQX broker. Details on both:
Android Client: HiveMQ v1.3.0
Broker: EMQX v5.0.9 (3 core nodes, 0 replica nodes)

Upon scaling to almost 3000 connections, I started facing the following issue: com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Server closed connection without DISCONNECT. Is this an issue specific to HiveMQ client or a scaling issue with EMQX ?

Would be great if someone can help here. Thanks in advance.


Unfortunately, we are unable to provide you with any specific information regarding your Broker as we have no knowledge of the products offered by EMQ.

We utilized the HiveMQ MQTT Client as the foundation for our HiveMQ Swarm product. Recently, we published a white paper demonstrating the scalability of the HiveMQ Platform, using HiveMQ Swarm and the HiveMQ MQTT Client to achieve a benchmark of 200 million connections.

Furthermore, the log message you provided,

“com.hivemq.client.mqtt.exceptions.ConnectionClosedException: Server closed connection without DISCONNECT,”

strongly suggests an action taken by the server, although we cannot guarantee this due to our lack of knowledge about EMQ.

Best regards,