『瀚思彼岸』» 智能家居技术论坛

 找回密码
 立即注册
查看: 897|回复: 2

[技术探讨] 求助!重启树莓派后docker安装的mqtt服务容器都显示exiter

[复制链接]

4

主题

56

帖子

503

积分

高级会员

Rank: 4

积分
503
金钱
447
HASS币
0
发表于 2022-12-16 14:16:40 | 显示全部楼层 |阅读模式
本帖最后由 qyzyl 于 2022-12-16 14:18 编辑

每次重启树莓派后3b+中docker安装的mqtt服务容器都显示exiter,提示内在内存使用率太高,要后期手动启动。有什么办法解决吗?
日志:
!!!!!!
WARNING: Default (insecure) Erlang cookie is in use.
WARNING: Configure node.cookie in /opt/emqx/etc/emqx.conf or override from environment variable EMQX_NODE__COOKIE
NOTE: Use the same config value for all nodes in the cluster.
!!!!!!
rpc.port_discovery = EMQX_RPC__PORT_DISCOVERY = manual
log.file_handlers.default.enable = EMQX_LOG__FILE_HANDLERS__DEFAULT__ENABLE = false
log.console_handler.enable = EMQX_LOG__CONSOLE_HANDLER__ENABLE = true
node.name = EMQX_NODE__NAME = [email protected]
Mnesia('[email protected]'): previous_log repaired, lost 212 bad bytes
Mnesia('[email protected]'): previous_log repaired, lost 7 bad bytes
Mnesia('[email protected]'): previous_log repaired, lost 212 bad bytes
Mnesia('[email protected]'): previous_log repaired, lost 7 bad bytes
2022-12-16T02:11:17.554485+00:00 [warning] line: 415, message: <<"76.79% mem usage">>, mfa: emqx_alarm:do_actions/3, msg: alarm_is_activated, name: high_system_memory_usage
Listener ssl:default on 0.0.0.0:8883 started.
Listener tcp:default on 0.0.0.0:1883 started.
Listener ws:default on 0.0.0.0:8083 started.
Listener wss:default on 0.0.0.0:8084 started.
Listener http:dashboard on :18083 started.
EMQX 5.0.11 is running now!
2022-12-16T02:54:18.895189+00:00 [warning] line: 421, mfa: emqx_alarm:do_actions/3, msg: alarm_is_deactivated, name: high_system_memory_usage
2022-12-16T02:55:18.958380+00:00 [warning] line: 415, message: <<"70.34% mem usage">>, mfa: emqx_alarm:do_actions/3, msg: alarm_is_activated, name: high_system_memory_usage
2022-12-16T04:07:23.219773+00:00 [warning] line: 421, mfa: emqx_alarm:do_actions/3, msg: alarm_is_deactivated, name: high_system_memory_usage
2022-12-16T04:08:23.326454+00:00 [warning] line: 415, message: <<"74.20% mem usage">>, mfa: emqx_alarm:do_actions/3, msg: alarm_is_activated, name: high_system_memory_usage
Received terminate signal, shutting down now
Stop listener http:dashboard on :18083 successfully.
Listener ssl:default on 0.0.0.0:8883 stopped.
Listener tcp:default on 0.0.0.0:1883 stopped.
Listener ws:default on 0.0.0.0:8083 stopped.
Listener wss:default on 0.0.0.0:8084 stopped.
2022-12-16T04:37:16.056560+00:00 [error] exception: error, line: 120, mfa: emqx_pool:handle_cast/2, msg: async_submit_error, reason: badarg, stacktrace: [{ets,delete,[emqx_subscription,<0.5614.0>],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_broker,subscriber_down,1,[{file,"emqx_broker.erl"},{line,383}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_pool,handle_cast,2,[{file,"emqx_pool.erl"},{line,112}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed






1.png
回复

使用道具 举报

3

主题

49

帖子

577

积分

高级会员

Rank: 4

积分
577
金钱
528
HASS币
0
发表于 2022-12-16 14:36:00 | 显示全部楼层
我只有esphome编译的时候emxq才会爆卡,
high_system_memory_usage  72.09% mem usage,
其他时候都没事,我的S905机顶盒才1G内存,然后划了1G虚拟内存。
回复

使用道具 举报

4

主题

56

帖子

503

积分

高级会员

Rank: 4

积分
503
金钱
447
HASS币
0
 楼主| 发表于 2022-12-16 16:44:42 | 显示全部楼层
本帖最后由 qyzyl 于 2022-12-16 16:57 编辑
fack188 发表于 2022-12-16 14:36
我只有esphome编译的时候emxq才会爆卡,
high_system_memory_usage  72.09% mem usage,
其他时候都没事, ...
改了1G虚拟内存,没提示内存问题,但还是出错,看不懂。
我是重启的时候才会这样,其他启动完后,再启动又能正常的。现在的日志:
2022-12-16T08:49:14.693092+00:00 [warning] info: [{timeout,376},{in,{gen,do_call,4}},{out,{gen_server,loop,7}}], line: 136, mfa: emqx_sys_mon:handle_info/2, msg: long_schedule, procinfo: [{pid,<0.2134.0>},{memory,16816},{total_heap_size,1985},{heap_size,1598},{stack_size,12},{min_heap_size,233},{proc_lib_initial_call,{emqx_os_mon,init,['Argument__1']}},{initial_call,{proc_lib,init_p,5}},{current_stacktrace,[{gen_server,loop,7,[{file,"gen_server.erl"},{line,443}]},{proc_lib,init_p_do_apply,3,[{file,"proc_lib.erl"},{line,226}]}]},{registered_name,emqx_os_mon},{status,waiting},{message_queue_len,0},{group_leader,<0.2044.0>},{priority,normal},{trap_exit,false},{reductions,250274},{last_calls,false},{catchlevel,1},{trace,0},{suspending,[]},{sequential_trace_token,[]},{error_handler,error_handler}]
Received terminate signal, shutting down now
Stop listener http:dashboard on :18083 successfully.
Listener ssl:default on 0.0.0.0:8883 stopped.
2022-12-16T08:49:37.533955+00:00 [error] Supervisor: {<0.2166.0>,esockd_acceptor_sup}. Context: shutdown_error. Reason: noproc. Offender: id=acceptor,nb_children=1.
Listener tcp:default on 0.0.0.0:1883 stopped.
Listener ws:default on 0.0.0.0:8083 stopped.
Listener wss:default on 0.0.0.0:8084 stopped.
2022-12-16T08:49:37.692808+00:00 [error] exception: error, line: 120, mfa: emqx_pool:handle_cast/2, msg: async_submit_error, reason: badarg, stacktrace: [{ets,lookup,[emqx_submon,<0.2567.0>],[{error_info,#{cause => id,module => erl_stdlib_errors}}]},{emqx_broker_helper,clean_down,1,[{file,"emqx_broker_helper.erl"},{line,156}]},{lists,foreach,2,[{file,"lists.erl"},{line,1342}]},{emqx_pool,handle_cast,2,[{file,"emqx_pool.erl"},{line,112}]},{gen_server,try_dispatch,4,[{file,"gen_server.erl"},{line,695}]},{gen_server,handle_msg,6,[{file,"gen_server.erl"},{line,771}]},{proc_lib,wake_up,3,[{file,"proc_lib.erl"},{line,236}]}]
[os_mon] memory supervisor port (memsup): Erlang has closed
[os_mon] cpu supervisor port (cpu_sup): Erlang has closed



回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

Archiver|手机版|小黑屋|Hassbian

GMT+8, 2024-11-28 13:48 , Processed in 0.317763 second(s), 27 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表