Memory leak?

Im running hassio and have a problem with it crashing at least once per day. This started when I was running my system on a dedicated NUC. I since then created a new environment in VMWare on a different machine but the same keeps happening.

It seems like the memory usage skyrockets right before it crashes.

The system is all up to date, so no missing updates/patches.

Anyone with some ideas? Im about to give up.

You may check this post:

My RPI system usually has to be rebooted via unplug and repowered once a week. I am hanging out for the Amber system but I notice it starts off really well but after a few days starts to go downhill. I am convinced something in my system has a memory leak. Just doing the latest operating system updates and the last 2 normal updates as I was hanging off thinking it was stable. I am looking for the point where it becomes stable for a few weeks again and then I will stop updating till I get some new hardware

Memory leaks are not related to hardware but software instead. Do you have custom components? If yes did you try to disable all and retry?

Yes I realise that memory leaks are due to badly written software. I used to program and I can tell you I have caused a few myself. The reason i mentioned hardware is I don’t want to spend all the time doing this and then have to spend more time again when I change hardware. Just want the system to hang in there and do the work once.

Hi I have experiencing memory leak starting with 10.x currently running core-2021.11.1 (docker). Ive been disabling integrations one by one to see which one causes the leak. In fact it was UPNP integration for me on a Archer router device… when looking at other complaints on github im noticing its sometimes printers and also UPNP. Its my current impression that all / some UPNP (or some) are affected. BTW the integration itself on for example an Archer is far from stable it looses connection and data points quite often. I can confirm that disabling that UPNP integration memory is stable.

I was having a similar problem as shown in this chart:


After disabling what I could run without, i ended up removing remote assistant, and HACS and re-installing. I was going to put in an issue however when I re-installed everything to see if it was reproducible it seems to be working ok now. The flat spot in the middle was with HACS removed, the last few restarts were related to reinstalling HACS and remote assistance. Running on RPI 4 B 4GB rev 1.4

had another crash on nov 22nd, no obvious errors, or useful messages. I did notice after restarting that glances was showing a lot of critical iow/s. Upgraded to a faster sd card, and installed the 32 bit operating system. will update how it runs in a few days.

had another freeze a couple of days ago, first since the change in SD card speed.

Just wanted to chime-in to say that I’m currently experiencing the same problem, after I updated to 2021.11.5 (don’t know from which version, I usually update every few months)

I mentioned my issue here - no solution yet, I’m still in troubleshooting mode: Home Assistant Core shutting down unexpectedly - Installation - Home Assistant Community (home-assistant.io)

I’ll start disabling integrations and monitoring, if I find a clear culprit I’ll post an update here