hassio-addons / addon-emqx

EMQX - Home Assistant Community Add-ons
MIT License
63 stars 13 forks source link

Log usage unclear #88

Closed evilmumi closed 2 weeks ago

evilmumi commented 7 months ago

Problem/Motivation

high memory usage

Expected behavior

normal memory usage

Actual behavior


2024-02-18T20:32:15.628659+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage
2024-02-18T21:30:15.690699+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"78.39% mem usage">>, name: high_system_memory_usage
2024-02-18T21:31:15.692591+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage
2024-02-18T23:31:15.819597+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"77.36% mem usage">>, name: high_system_memory_usage
2024-02-18T23:32:15.820445+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage
2024-02-19T03:31:16.070281+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"76.40% mem usage">>, name: high_system_memory_usage
2024-02-19T03:32:16.072468+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage
2024-02-19T07:50:16.341557+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"80.33% mem usage">>, name: high_system_memory_usage
2024-02-19T07:51:16.343575+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage
2024-02-19T13:31:16.710660+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"80.00% mem usage">>, name: high_system_memory_usage
2024-02-19T13:32:16.715605+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage

Steps to reproduce

just run

Proposed changes

no

Is there any change to give it more memory or find out what is needed?

github-actions[bot] commented 6 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

evilmumi commented 6 months ago

Hi, still existing 2024-03-20T14:30:54.809230+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"76.25% mem usage">>, name: high_system_memory_usage 2024-03-20T14:31:54.819135+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage 2024-03-20T18:00:55.152595+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"78.63% mem usage">>, name: high_system_memory_usage 2024-03-20T18:01:55.154799+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage 2024-03-20T21:30:55.465854+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"70.76% mem usage">>, name: high_system_memory_usage 2024-03-20T21:31:55.467792+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage 2024-03-21T08:30:56.425733+01:00 [warning] msg: alarm_is_activated, mfa: emqx_alarm:do_actions/3(418), message: <<"76.37% mem usage">>, name: high_system_memory_usage 2024-03-21T08:31:56.427531+01:00 [warning] msg: alarm_is_deactivated, mfa: emqx_alarm:do_actions/3(424), name: high_system_memory_usage

github-actions[bot] commented 5 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

evilmumi commented 5 months ago

Still need assistance

github-actions[bot] commented 4 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

evilmumi commented 4 months ago

still need help

StrausFuenf commented 4 months ago

Hey, the memory in EMQX should be the memory of your Homeassistant server. Maybe your got some heavy stuff running on your Homeassistant server? You check the memory on the webinterface -> Cluster Overview -> OS Memory or webinterface -> Cluster Overview -> Nodes. There should be the used and max ram which should be the same as your server. Where you should check which process uses your memory.

evilmumi commented 4 months ago

do you mean this: image ? perhaps at some time there are special jobs which ran it high:

024-05-30T05:30:30.041024+02:00 [warning] msg: alarm_is_activated, message: <<"75.98% mem usage">>, name: high_system_memory_usage
2024-05-30T05:31:30.042630+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T06:30:30.148226+02:00 [warning] msg: alarm_is_activated, message: <<"83.18% mem usage">>, name: high_system_memory_usage
2024-05-30T06:31:30.150018+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T14:30:30.906953+02:00 [warning] msg: alarm_is_activated, message: <<"84.11% mem usage">>, name: high_system_memory_usage
2024-05-30T14:31:30.911878+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T15:30:30.988444+02:00 [warning] msg: alarm_is_activated, message: <<"86.98% mem usage">>, name: high_system_memory_usage
2024-05-30T15:31:30.990449+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T21:30:31.555579+02:00 [warning] msg: alarm_is_activated, message: <<"73.03% mem usage">>, name: high_system_memory_usage
2024-05-30T21:31:31.557701+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T22:30:31.654884+02:00 [warning] msg: alarm_is_activated, message: <<"81.27% mem usage">>, name: high_system_memory_usage
2024-05-30T22:31:31.656409+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
2024-05-30T23:30:31.737991+02:00 [warning] msg: alarm_is_activated, message: <<"86.54% mem usage">>, name: high_system_memory_usage
2024-05-30T23:31:31.739309+02:00 [warning] msg: alarm_is_deactivated, name: high_system_memory_usage
StrausFuenf commented 4 months ago

Yeah thats what i mean. With 2.3/3.8G thats already 60% usage. I guess that just means your system is running already with a pretty high ram usage. Maybe consider changing the alarm to only trigger at 90 or 95%? With htop inside a terminal (on HAOS you need to check how to get ssh access) you can also check whats using all your memory.

But that should be no EMQX issue. EMQX just tells you about that so maybe consider closing the issue.

evilmumi commented 4 months ago

How can i change the alarm to 90 percent?

github-actions[bot] commented 3 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

evilmumi commented 3 months ago

any news on that?!

github-actions[bot] commented 2 months ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!

evilmumi commented 2 months ago

still 6 alerts per day ...

StrausFuenf commented 1 month ago

Hey sorry.. I totally forgot about that..

Just try to edit that here: image

SysMem to 90 or 95% and ProcMem to 10% and check if it works.

evilmumi commented 1 month ago

ok that should ignore the warnings. Will i get problems with this "high" workload?

github-actions[bot] commented 3 weeks ago

There hasn't been any activity on this issue recently, so we clean up some of the older and inactive issues. Please make sure to update to the latest version and check if that solves the issue. Let us know if that works for you by leaving a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thanks!