Actually yes, I know high memory usage is not an issue by itself. But my memory usage keeps growing over time and at some point, linux is killing HA:
[91096.975793] Out of memory: Kill process 6177 (python3) score 475 or sacrifice child
[91096.985885] Killed process 6177 (python3) total-vm:3798692kB, anon-rss:481348kB, file-rss:0kB, shmem-rss:0kB
My question is maybe not as precise as It should: How can I know what integration/component/other is causing the issue ?
Two potential options are to write some code to use objgraph to dump every object in memory every 30 seconds and see where the growth is, or remove integrations one by one until the issue goes away.
well, yeah, was afraid it would be the response I have like 30 integrations (and of course some integration, like mqtt, are part of the core of my automation) and I need at least 12 hours to figure out if there is a memory leak.
Anyway, thanks for the response, I’m gonna start with the less important one !
I’ve been struggling with high memory usage for some months now. I’m running supervised HA on RPi3b+ running Raspbian. I really can’t track down the root cause for increased memory usage but it started this summer. Everything worked fine for months before that…
I’ve tried numerous of things to resolve this issue but nothing seemed to help until this. I increased cache size to twice the size of the RAM available on RPi3b+. After this RAM and cache usage has been steady. I haven’t seen the constant increase in cache and RAM usage that used to be the case before increasing the cache size. I know this might be killing my SDcard but it’s better than daily forced reboots. Maybe I need to migrate my setup to SSD boot.
Hi, I have noticed the memory consumption related to nodeRed. The more automation, especially the subprocesses in subproces, the faster the RAM clogs up.
Try to restart Node Red, if you memory the consumption will be close to 100%
For me, the memory consumption - 6Gb takes about 5 days
I just moved from RasPi3b to HA Blue (Odroid N2+) with 4 GB RAM after having had to restart HA every 2-3 (losing 100-200 MB memory per day). This started around Christmas, never had issues in the 9 months before that.
On the new setup I also see continuously dropping memory with steep downs when I have Lovelace open or working on the frontend (which also gets CPU and Memory of the browser on my client fired up).
So there seem to be issues related to the Frontend if that’s of any help. I will see if I‘ll spend hours tracking down the source of the memory leak now that I‘ve thrown some money at the problem…
I’m running the latest version of HA on Proxmox (running on an i7 16G). I’ve just noticed on the Proxmox console a memory usage of 90% but in Home Assistant the sensor indicates a usage of less than 20%. Should I be worried ? And besides adding more memory (currently 8G), what are my options ?