emqx查询10M的包数据会掉线

环境信息

  • EMQX 版本:4.2.14
  • 操作系统及版本:centos7.9
  • 其他 鉴权 httpauth

问题描述

设备端发送日志一次读取10M的文件传给emqx,会使设备端掉线emqx报错(mqtt.max_packet_size已优化为100M,zone.external.rate_limit.conn_bytes_in = 10000000KB,10s速率限制是九百多M):“2022-06-10 16:19:27.490 [warning] [SYSMON] long_schedule warning: pid = <0.25688.1978>, info: [{timeout,247},
{in,
{emqx_connection,
next_incoming_msgs,1}},
{out,
{emqx_connection,
parse_incoming,3}}]
[{initial_call,{proc_lib,init_p,5}},
{current_function,{erlang,process_info,2}},
{registered_name,[]},
{status,running},
{message_queue_len,0},
{group_leader,<0.1397.0>},
{priority,normal},
{trap_exit,false},
{reductions,405810},
{last_calls,false},
{catchlevel,2},
{trace,0},
{suspending,[]},
{sequential_trace_token,[]},
{error_handler,error_handler},
{memory,37888},
{total_heap_size,4563},
{heap_size,376},
{stack_size,9},
{min_heap_size,233}]”
参数配置也是合理的,怎么会报错,而且报错概率是60%大概

配置文件及日志

不是这个日志导致的,还有其他日志么?

日志只看到这些,剩下的就是重连“2022-06-10 16:22:50.716 [warning] Received gun_down with closed
2022-06-10 16:22:50.716 [warning] Received gun_down with closed
2022-06-10 16:22:50.717 [warning] Received gun_down with closed
2022-06-10 16:22:53.228 [warning] Received gun_down with closed
2022-06-10 16:22:55.085 [error] <<“thing-P6969275”>>@172.21.20.25:53035 [Auth http] Deny connection from path: /mqtt/auth, response http code: 403
2022-06-10 16:22:55.085 [warning] <<“thing-P6969275”>>@172.21.20.25:53035 [Channel] Client thing-P6969275 (Username: ‘P6969275’) login failed for not_authorized”,,,设备端日志也看不到什么原因。。。一查询10M的那个日志文件,设备端就断线重连。。

试试看日志追踪,看看这个客户端的 DEBUG 日志