emqx docker 提示错误

Stop http:management listener on 0.0.0.0:8081 successfully.
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed
listener.ssl.external.acceptors = "32"
listener.ssl.external.max_connections = "102400"
listener.tcp.external.acceptors = "64"
listener.tcp.external.max_connections = "1024000"
listener.ws.external.acceptors = "16"
listener.ws.external.max_connections = "102400"
listener.wss.external.acceptors = "16"
listener.wss.external.max_connections = "102400"
log.to = "console"
node.max_ets_tables = "2097152"
node.max_ports = "1048576"
node.name = "da426aba9c50@10.201.0.2"
node.process_limit = "2097152"
rpc.port_discovery = "manual"
Starting emqx on node da426aba9c50@10.201.0.2
Start http:management listener on 8081 successfully.
Start http:dashboard listener on 18083 successfully.
Start mqtt:tcp:internal listener on 127.0.0.1:11883 successfully.
Start mqtt:tcp:external listener on 0.0.0.0:1883 successfully.
Start mqtt:ws:external listener on 0.0.0.0:8083 successfully.
Start mqtt:ssl:external listener on 0.0.0.0:8883 successfully.
Start mqtt:wss:external listener on 0.0.0.0:8084 successfully.
EMQ X Broker 4.3.8 is running now!
2025-05-08T20:51:09.266124+00:00 [warning] [Alarm Handler] Alarm high_system_memory_usage is activated, System memory usage is higher than 70%

这个mqtt docker 默认使用utc时间。

参考:emqx 消费消息时,大数量下消息丢失异常 - EMQX - EMQ 问答社区

参考:https://segmentfault.com/a/1190000045059752

2025-05-08T21:11:12.991568+00:00 [error] Ranch listener 'mqtt:ws:8083' had connection process started with cowboy_clear:start_link/4 at <0.2183.0> exit with reason: {{case_clause,{error,closed}},[{cowboy_websocket,websocket_send_close,2,[{file,"cowboy_websocket.erl"},{line,640}]},{cowboy_websocket,websocket_close,3,[{file,"cowboy_websocket.erl"},{line,623}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}
2025-05-08T21:11:56.979061+00:00 [error] fe81b9b3-55f1-495f-808f-5051d2f6c71b@10.201.0.1:48262 crasher: initial call: cowboy_clear:connection_process/4, pid: <0.2231.0>, registered_name: [], error: {{case_clause,{error,closed}},[{cowboy_websocket,websocket_send_close,2,[{file,"cowboy_websocket.erl"},{line,640}]},{cowboy_websocket,websocket_close,3,[{file,"cowboy_websocket.erl"},{line,623}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}, ancestors: [<0.1863.0>,<0.1862.0>,ranch_sup,<0.1562.0>], message_queue_len: 2, messages: [{tcp,#Port<0.39>,<<130,254,3,147,132,229,84,222,176,117,83,222,135,137,59,185,132,228,47,252,231,138,57,174,235,139,49,176,240,199,110,254,166,140,48,173,219,134,59,179,244,138,58,187,234,145,118,242,164,199,32,167,244,128,118,228,164,199,55,177,232,137,49,189,240,199,120,254,166,129,53,170,229,199,110,254,255,199,39,172,231,129,49,168,234,132,57,187,166,223,116,252,166,201,116,...>>},{tcp_closed,#Port<0.39>}], links: [<0.1863.0>], dictionary: [{incoming_bytes,50},{guid,{1746738716974853,131829726185655,0}},{'$logger_metadata$',#{clientid => "fe81b9b3-55f1-495f-808f-5051d2f6c71b",peername => "10.201.0.1:48262"}},{recv_pkt,1},{send_pkt,1},{send_oct,4},{send_cnt,1},{recv_oct,50},{outgoing_bytes,4},{recv_cnt,1}], trap_exit: true, status: running, heap_size: 2586, stack_size: 28, reductions: 3972; neighbours:
2025-05-08T21:11:56.982512+00:00 [error] Ranch listener 'mqtt:ws:8083' had connection process started with cowboy_clear:start_link/4 at <0.2231.0> exit with reason: {{case_clause,{error,closed}},[{cowboy_websocket,websocket_send_close,2,[{file,"cowboy_websocket.erl"},{line,640}]},{cowboy_websocket,websocket_close,3,[{file,"cowboy_websocket.erl"},{line,623}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}
2025-05-08T21:11:57.002612+00:00 [error] f965d24a-5f39-42ad-aa8b-32df92400768@10.201.0.1:48270 crasher: initial call: cowboy_clear:connection_process/4, pid: <0.2239.0>, registered_name: [], error: {{case_clause,{error,closed}},[{cowboy_websocket,websocket_send_close,2,[{file,"cowboy_websocket.erl"},{line,640}]},{cowboy_websocket,websocket_close,3,[{file,"cowboy_websocket.erl"},{line,623}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}, ancestors: [<0.1863.0>,<0.1862.0>,ranch_sup,<0.1562.0>], message_queue_len: 1, messages: [{tcp_closed,#Port<0.41>}], links: [<0.1863.0>], dictionary: [{outgoing_bytes,8},{incoming_bytes,965},{'$logger_metadata$',#{clientid => "f965d24a-5f39-42ad-aa8b-32df92400768",peername => "10.201.0.1:48270"}},{guid,{1746738717002424,131829726185663,1}},{recv_msg,1},{recv_pkt,2},{send_pkt,2},{{publish,<<"log">>},{allow,1746738717002}},{send_oct,8},{send_cnt,2},{acl_keys_q,{[{publish,<<"log">>}],[]}},{recv_oct,965},{acl_cache_size,1},{incoming_pubs,1},{recv_cnt,2}], trap_exit: true, status: running, heap_size: 987, stack_size: 28, reductions: 12448; neighbours:
2025-05-08T21:11:57.003689+00:00 [error] Ranch listener 'mqtt:ws:8083' had connection process started with cowboy_clear:start_link/4 at <0.2239.0> exit with reason: {{case_clause,{error,closed}},[{cowboy_websocket,websocket_send_close,2,[{file,"cowboy_websocket.erl"},{line,640}]},{cowboy_websocket,websocket_close,3,[{file,"cowboy_websocket.erl"},{line,623}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]}

参考:搜索关键词

https://github.com/emqx/emqx/issues/6754

Fix case clause in cowboy_websocket.erl by terry-xiaoyu · Pull Request #8 · emqx/cowboy · GitHub

常见日志报错及解决方法(一) - 杭州映云科技有限公司 

官网FAQ

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值