环境
- EMQX 版本:5.0.21
- 操作系统版本:centos
(1)conn_congestion频繁告警
2024-12-16T19:29:17.338399+08:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3, line: 416, message: <<"connection congested: #{buffer => 4096,clientid => <<"172.20.0.36_7116182459584348773">>,conn_state => connected,connected_at => 1734348547840,high_msgq_watermark => 8192,high_watermark => 1048576,memory => 29720,message_queue_len => 0,peername => <<"172.20.0.1:58162">>,pid => <<"<0.10188.0>">>,proto_name => <<"MQTT">>,proto_ver => 5,recbuf => 374400,recv_cnt => 2,recv_oct "…>>, name: <<“conn_congestion/172.20.0.36_7116182459584348773/admin”>>
(2)日志追踪:MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773,连接上后立即断开
2024-12-16T19:31:02+08:00 [MQTT] MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773@172.20.0.1:59790 msg: mqtt_packet_received, packet: CONNECT(Q0, R0, D0, ClientId=MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773, ProtoName=MQTT, ProtoVsn=5, CleanStart=true, KeepAlive=60, Username=admin, Password=******)
2024-12-16T19:31:02+08:00 [MQTT] MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773@172.20.0.1:59790 msg: mqtt_packet_sent, packet: CONNACK(Q0, R0, D0, AckFlags=0, ReasonCode=0)
2024-12-16T19:31:58+08:00 [MQTT] MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773@172.20.0.1:59790 msg: mqtt_packet_received, packet: DISCONNECT(Q0, R0, D0, ReasonCode=0)
2024-12-16T19:31:58+08:00 [SOCKET] MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773@172.20.0.1:59790 msg: socket_force_closed, reason: normal
2024-12-16T19:31:58+08:00 [SOCKET] MQTT_CLIENT_ASYNC_172.20.0.36_7116182459584348773@172.20.0.1:59790 msg: emqx_connection_terminated, reason: {shutdown,normal}