RAM - Usage Rising until Freeze/Crash

Hi,

So I originally had a Raspbery Pi 4 1gb but found I was running at 88% ram almost instantly (after reboot) and then after 12hours the system would lock/freeze/crash and disapear from the network, so I’d have to unplug the Pi to restart. I added sysem monitoring and logged it and the ram usage creeped up and around 95% it would crash.

I figured I just needed from RAM so I got a 2GB Pi4 and I’m now sitting at 1gb usage on boot. But this is constantly rising too. See screenshot. It’s not crashed yet this year, but this constant rise in RAM usage is a bit worrying.

Is that normal?
Do I have a memory leak?
What could be causing this?

I’m thinking of wiping the whole system and starting again but I have so many automations that took me a while to setup I’d rather not.

I have checked for any repeats in my automations too. Of which I have none.

If I do a restart the RAM usage drops to 40% but quickly climbs back to 50% and then continues to rise slowy from there.

Might be worth having a look at individual addons and their memory usage, we had a similar issue with the frigate addon and found that restarting the addon dropped the ram back to normal / acceptable levels.

Ohh, how can I view each add ons memory usage?

So MariaDB was using 9%. I restarted that and it’s just wen’t back to 9%.

But that doesn’t appear to be my issue. As my ram usage has still been rising. Most of my other apps are installed through HAC’s how can I see the RAM usage for those?

1 Like

Have you solved?

What “apps” you have installed via HACS?

To my poor understanding, the only actual “apps” you can get into your HA installation are the add-ons. Those are, AFAIK, docker containers and thus are easy to monitor.

Besides that, all you can get via HACS are either frontend cards (which, you may have guessed, have nothing to do with your issue) or custom integrations. I guess those are the “apps” you mentioned, but unfortunately they have no monitoring on their own. I’m not even sure if they’re run separately or what.

Sorry for doing the necro on your post, but I thought I should clarify the question, given I’m looking around for performance issues and some other people may fall here as well. Hope you have it solved!