I have some suspicions that InfluxDB is what’s causing these problems. I’ve a few times upgraded to the next minor release and Influx hasn’t autostarted, and memory is under 50 right now, compared to where it was the past few days and last night when I took this screenshot.
I have no idea if this issue is even on anyone’s radar to get resolved, Influx or otherwise. It’s super frustrating.
Any tips on debugging source of memory issues in HA? I am seeing HA use up all memory and pretty much hang system. I am using a RPI 3b+ with HA running in docker. My experience is that the memory usage seems to shoot up when the UI is requested, but a slow and steady leak even if you reboot and never launch UI. I was a bit slow to the upgrades as the graph below shows, but problem seems to have started with my upgrade to 100.2 and has gotten worse with each upgrade since. Latest release 109.6 is pretty much unusable. Going from not rebooting for months to every 12 or less hours is a real setback! Thanks for help!
I have the exact same problem. I already narrowed down the recorder to only record the automations and two sensors, but I see a clear increase of memory usage every hour during the night when not much is going on rather than one automation that determines the max day temperature every 15 minutes.
I’m seeing issues as well with the 3.13 image in proxmox. You can see below on the weekly where I increased from 2gb to 4gb RAM. You can also see it slowly climb. The hourly you can see where it was (>90%) and where it was after reboot (~35%)
It’s not clear to me, are you still having memory issues in the .110 beta or is it looking like it might be fixed in the near future?
Not sure why this doesn’t seem to be getting more attention or even really acknowledged. An issue introduced and fixed in .108 and then brought back in the next release. Super frustrating.
I’m not seeing any memory issues. I was having issues but generally not with HA containers. Vscode was a problem though and I have a button to restart that one. I have also had issues in the past with SABNZBD, sonarr and radar and I have an automation to kick those if the memeory spikes above rp% for an hour.
I have notice a memory issue as well. It was really apparent pre .108 and seems to be happening again in .109. I am running in python venv as another user. I am not using a different database. I do have 184 Modbus sensors connected right now but that has not always been the case. Previously, I noticed that the History View increased the Memory usage which may be normal, but the problem is that it never went back down. I am downloading .110-b3 now.
I am seeing very similar patterns. I have a NUC with Proxmox and the memory is going from 25% to 97% over the period of a day. The biggest step seems to be when my system auto snap shots at 0230 in the morning. It jumps over 1GB then settles anc continues a gradual increase. I have a lot of plug ins but I have definitely noticed it since i moved to mariaDB. Could this be anything to do with it? I am now also having problems getting my history page to load, it takes forever and then hangs as it doesnt seem to be able to process the data. my MariaDB is about 2Gb.
I am still using 0.109.6
any ideas greatly received
As a counter data point (just to clarify that it’s not a systemic issue), I’m not seeing any memory issues:
That’s a Banana Pi running 0.109.6 in a virtualenv on top of Armbian Buster, with the standard sqlite3.
The only memory issues I have experienced were with ssh connections into my Unifi APs, which would occasionally consume all memory. I’ve resolved this now.
As an update, although not consistent, I do not see a continual increase in the use of memory over a longer period,
For swap the solution was reasonably simple, edit /etc/dphys-swapfile and comment out the fixed size of memory. Then reboot. My system is a Raspbian based system running on an SSD, this is not advisable on an SD Card based system.
I’m on 0.110.5 (the newest release at the moment) and I still see this issue.
I have a similar setup as others in this thread; A NUC running proxmox, with a VM dedicated to HA.
This VM has 8gb dedicated to it, and it regularly goes to 95% usage. A restart of HA doesn’t seem to have an effect, I need to reboot the whole VM to get it back to a normal usage, but then it keeps going up again.
It’s impacting the speed of the system, with lights that were normally instant now taking several seconds to respond.
The VM is dedicated to HA, with the only other process on it being Avahi.
I’m running Home Assistant in docker on it, with several add ons (Mosquitto, NR, Samba, Z2M, visual studio code, esphome).
I’m also running HACS with a small number of integrations (browser_mod, garbage collection, spotify start) and some custom cards for Lovelace
Opening NodeRed takes several seconds of waiting time before the screen starts to build.
I looked at TOP in the VM and notice that NR takes 25% of the memory, but I don’t see any other processes that take high amounts of memory.
I’m not using InfluxDB nor MariaDB
VSCode doesn’t seem to be it; I removed it, rebooted the VM, and I literally see the memory rising; it started at 23%, 10 minutes later i’m at 29% and keeps going up.