多个设备同时上报信息客户端会断掉,断开连接

环境

  • EMQX 版本:5.0
  • 操作系统版本:centos 7.6

负载消息情况下应用端会被踢掉;断开连接;

emqx日志如下:

2023-01-13T20:34:59.461167+08:00 [warning] line: 411, message: <<“connection congested: #{buffer => 4096,clientid => <<"cdz-client-wechat-456">>,conn_state => connected,connected_at => 1673613157891,high_msgq_watermark => 8192,high_watermark => 1048576,memory => 109968,message_queue_len => 0,peername => <<"127.0.0.1:33102">>,pid => <<"<0.2682.0>">>,proto_name => <<"MQTT">>,proto_ver => 4,recbuf => 1061488,recv_cnt => 100,recv_oct => 3626,reductions => 555250”…>>, mfa: emqx_alarm:do_actions/3, msg: alarm_is_activated, name: <<“conn_congestion/cdz-client-wechat-456/cdz”>>
2023-01-13T20:35:10.022958+08:00 [warning] line: 178, mfa: emqx_sys_mon:handle_info/2, msg: busy_port, portinfo: [{port,#Port<0.36>},{name,“tcp_inet”},{links,[<0.2682.0>]},{id,288},{connected,<0.2682.0>},{input,0},{output,9326995},{os_pid,undefined}], procinfo: [{pid,<0.2682.0>},{memory,285312},{total_heap_size,35462},{heap_size,6772},{stack_size,33},{min_heap_size,233},{proc_lib_initial_call,{emqx_connection,init,[‘Argument__1’,‘Argument__2’,‘Argument__3’,‘Argument__4’]}},{initial_call,{proc_lib,init_p,5}},{current_stacktrace,[{erlang,port_command,3,[]},{esockd_transport,async_send,3,[{file,“esockd_transport.erl”},{line,153}]},{emqx_connection,send,2,[{file,“emqx_connection.erl”},{line,857}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,466}]},{emqx_connection,process_msg,2,[{file,“emqx_connection.erl”},{line,472}]},{emqx_connection,handle_recv,3,[{file,“emqx_connection.erl”},{line,428}]},{proc_lib,wake_up,3,[{file,“proc_lib.erl”},{line,236}]}]},{registered_name,[]},{status,suspended},{message_queue_len,0},{group_leader,<0.1898.0>},{priority,normal},{trap_exit,false},{reductions,61880263},{last_calls,false},{catchlevel,4},{trace,0},{suspending,[]},{sequential_trace_token,[]},{error_handler,error_handler}]
2023-01-13T20:35:25.138827+08:00 [warning] clientid: cdz-client-wechat-456, line: 881, mfa: emqx_connection:handle_info/2, msg: socket_error, peername: 127.0.0.1:33102, reason: timeout
2023-01-13T20:35:25.139208+08:00 [warning] line: 417, mfa: emqx_alarm:do_actions/3, msg: alarm_is_deactivated, name: <<“conn_congestion/cdz-client-wechat-456/cdz”>>