日志报错 socket_error: timeout

环境信息

  • EMQX 版本:4.4.3
  • 操作系统及版本:win10 64位
  • 其他
    客户端57个,主题约58个,订阅约58个,都是本地局域网连接
    每个主题发送消息约 200次每秒,每个消息长度2007个字符

问题描述

运行刚开始没有问题,约3个小时后就出现这样的警告,发现生产的消息有丢失。

配置文件及日志

2022-06-01T13:58:24.479000+08:00 [warning] MzA1MTIwNzM0ODExOTQ2OTc0MzUxMDI0NzQ3MDgzMjAyNTG@127.0.0.1:57926 [MQTT] socket_error: timeout
2022-06-01T13:58:24.480000+08:00 [warning] MzA1MTIwNzM0ODExMjg1ODQzMDQzNDIyOTk2NzM5NTIyNTG@127.0.0.1:57920 [MQTT] socket_error: timeout
2022-06-01T13:58:24.492000+08:00 [warning] MzA1MTIwNzM0ODExNzc2ODk1MzcwNjY1MTQ1MDEzMzcwODI@127.0.0.1:57923 [MQTT] socket_error: timeout
2022-06-01T13:58:24.555000+08:00 [warning] MzA1MTIwNzMwMzExMzA0NDUyMjg5MjY0NzU2NzEyNDA3MDE@127.0.0.1:57913 [MQTT] socket_error: timeout
2022-06-01T13:58:24.634000+08:00 [warning] MzA1MTIwNzMwMjU3OTYwNzExMTc5MjMzNjg2NjMxODc0NTG@127.0.0.1:57911 [MQTT] socket_error: timeout
2022-06-01T13:58:24.698000+08:00 [warning] MzA1MTIwNzM0ODExNzc2ODk1MzcwNjY1MTQ1MDEyNzE1NTC@127.0.0.1:57924 [MQTT] socket_error: timeout
2022-06-01T13:58:28.431000+08:00 [warning] MzA1MTIwNzMwMjU0NjkyODcwNDY2NTc2MDM5NTYxMTM0MDI@127.0.0.1:57910 [MQTT] socket_error: timeout
2022-06-01T13:58:29.608000+08:00 [warning] MzA1MTIwNzMwNTMxMTc4MDIwMTk5MTE2MTc0OTYwODg1NzG@127.0.0.1:57914 [MQTT] socket_error: timeout
2022-06-01T13:58:29.737000+08:00 [warning] MzA1MTIwNzMyNDgzODE5OTI5MzYxNDA4MTgyNTEzODI3ODE@127.0.0.1:57917 [MQTT] socket_error: timeout
2022-06-01T13:58:34.699000+08:00 [warning] MzA1MTIwNzMxMjUwMjA1NTQwODgwODQ4MzU1MjAzNDgxNjA@127.0.0.1:57915 [MQTT] socket_error: timeout
2022-06-01T13:58:35.264000+08:00 [warning] MzA1MTIwNzMwMjU4OTI0MDAwMTU0NzYyNzk5NDE5MjI4MTG@127.0.0.1:57912 [MQTT] socket_error: timeout
2022-06-01T13:58:45.051000+08:00 [warning] MzA1MTIwNzM3OTk0ODAzMzUyNTkzNjUxMTc0NDg3NDkwNTG@127.0.0.1:57929 [MQTT] socket_error: timeout
2022-06-01T13:58:45.578000+08:00 [warning] MzA1MTIwNTQzMDcyMTAxMzI5NjY4NTcyNjk1NDA5NDU5MjA@127.0.0.1:57714 [MQTT] socket_error: timeout
2022-06-01T13:58:45.774000+08:00 [warning] MzA1MTIwNzM3OTk0ODAzMzUyNTkzNjUxMTc0NDg2ODM1MjA@127.0.0.1:57930 [MQTT] socket_error: timeout
2022-06-01T13:58:48.170000+08:00 [warning] MzA1MTIwNTQ2Njk0NzgwMTA2NDQ2NzIyNjk0Mjg0NTc0NzC@127.0.0.1:57721 [MQTT] socket_error: timeout
2022-06-01T13:59:14.764000+08:00 [warning] MzA1MTIwNzM0ODEyMTE2ODY4ODYzOTQzNjEyMDU2ODYyNzC@127.0.0.1:57927 [MQTT] socket_error: timeout
2022-06-01T13:59:14.990000+08:00 [warning] MzA1MTIwNzM0ODExMjQ4MDI3MjE4MDcxODkyMTU4MDU0NDA@127.0.0.1:57918 [MQTT] socket_error: timeout
2022-06-01T13:59:42.855000+08:00 [warning] MzA1MTIwNzQ1MjgwNDMzMjg0NDA5MzUxNjU0MDE1NjMxMzG@127.0.0.1:57931 [MQTT] socket_error: timeout
2022-06-01T14:00:25.736000+08:00 [warning] MzA1MTIwNTQzMDcyMzA5MjI0NDc0MjgzNDAyMDU2ODI2ODI@127.0.0.1:57715 [MQTT] socket_error: timeout
2022-06-01T14:00:30.228000+08:00 [warning] MzA1MTIwNTQ3MzYxMDExNzU0MzE3NDEyOTc4MTMyOTEwMDI@127.0.0.1:57722 [MQTT] socket_error: timeout
2022-06-01T14:00:42.369000+08:00 [warning] MzA1MTIwNzMwMjUzNzEwNTgxMzQ0NjUxMDA1OTM1NjE2MDA@127.0.0.1:57909 [MQTT] socket_error: timeout
2022-06-01T14:01:06.133000+08:00 [warning] MzA1MTIwNzcwNzEyMjg3MTM5NDc4NjY0NDkxMDYxNzM5NTC@127.0.0.1:57934 [MQTT] socket_error: timeout
2022-06-01T14:01:06.191000+08:00 [warning] MzA1MTIwNzY5MjU4ODc0ODE0NzM4OTU1NDU0NjY2NTA2MjE@127.0.0.1:57933 [MQTT] socket_error: timeout



看起来你的客户端没有定时发送 MQTT 心跳包