emqx 4.4.3版本,跑一段时间后,客户端连接不了emqx服务器

我本地 日志 :
创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}
JG2023/01/10 - 22:16:23.298 e[31merrore[0m 创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}
JG2023/01/10 - 22:16:54.298 e[31merrore[0m 创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}
JG2023/01/10 - 22:16:54.298 e[31merrore[0m 创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}
JG2023/01/10 - 22:17:25.298 e[31merrore[0m 创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}
JG2023/01/10 - 22:17:25.298 e[31merrore[0m 创建失败! {“err”: “network Error : dial tcp 172.168.70.55:1883: i/o timeout”}

服务器侧的日志
2023-01-11T09:33:56.093045+08:00 [warning] [Alarm Handler] Alarm high_system_memory_usage is activated, System memory usage is higher than 70.0%
2023-01-11T09:33:56.210473+08:00 [warning] [Dashboard] Using default password for dashboard ‘admin’ user. Please use ‘./bin/emqx_ctl admins’ command to change it. NOTE: the default password in config file is only used to initialise the database record, changing the config file after database is initialised has no effect.
2023-01-11T11:00:17.015855+08:00 [warning] [Alarm Handler] Alarm high_system_memory_usage is activated, System memory usage is higher than 70.0%
2023-01-11T11:00:17.177359+08:00 [warning] [Dashboard] Using default password for dashboard ‘admin’ user. Please use ‘./bin/emqx_ctl admins’ command to change it. NOTE: the default password in config file is only used to initialise the database record, changing the config file after database is initialised has no effect.

服务端的这些日志应该跟你的问题无关,客户端日志初步看起来像是网络问题,你先尝试追踪一下客户端吧,复现出问题后我们看下日志。

大环境里,应该其它设备的网络是好的吧。一般重启一下emqx服务器就好了

这个emqx的连接数也很少,只有长时间的几个连接。理论每2分钟有一条数据,不知道问题在哪

这个我现在也没法确定,需要看日志才能进一步分析。

emqx下的log文件怎么给你?

整个文件怎么打包给你?

log.zip (58.3 KB)

请问这些日志文件够了吗

这个日志里面没有连接失败相关的日志,不过有看到之前你的 HTTP 监听器因为端口被占用所以启动失败了。

什么意思?你的意思是因为客户端问题照成的?

可以电话一下吗,请问

建议按照前面说的方式先获取到日志,你还可以配合抓包一起看一下。

问题可能十几天才复现,抓包有用吗?哈哈。还是说不需要复现?

出现问题后是持续无法连接还是仍然只是偶现的?后者的话你可以先给客户端加上重连机制。

偶现的。我有客户端重连机制,只是一直失败。重启EMQX服务,问题就解决了

那目前只能等问题复现了,等出现问题了先不要重启 EMQX,先追踪一下。