Home Assistant - High Memory Usage

The latest update to 2021.2.3 should have fixed this. You can add the integration back on again.

Iā€™m having the same issues not sure if it reporting right or not. On hassio it show ram usage over 100%. That not over an long period of time. It reach that point pretty much with in 2 minute after each reboot up. On proxmox its hover around 3gb out of 4gb of allot ram. I have total of only 13 addon and only 11 is running 24/7.

However I do notice on hassio sometime does hang on page load up from time to time during me making new lovelace ui or just messing around with the config. Pretty much the page will take forever/hang to page refresh. I have to completely close the browser page and open an new one.


!

1 Like

I just installed glancs and itā€™s reading seem to be more realistic. Maybe hassio reporting does have some bug?

Iā€™m running HA on Proxmox and I tried to get the nextcloud backup repo working. It kept failing on too big of a size, error 413.

So then I stated debugging Nextcloud which wasnā€™t the issue, Proxmox/HA was the issue. Whenever I ran the backup/snapshot I saw the memory spiking up to 8G of RAM and failing. Seems like HA writes to memory as temp folder and maybe not releasing it? Could this be the problem, especially for the Raspberry users?

Hi, I did that as well but did not solve the problem itself. It just gives time :slight_smile:
I can assist NamCisum as I recognized, that the memory drops down from 85% to 50% during the night. The swap file (2GB) drops down from 25% to 8% in the weekend to 5%.
And the ram started to increase exacly every morning around 07:30, the time when I start my notebook and open HA. It seems, regardless of closing HA or logoff, the memory increases up to 85% within the next two hours and then swaps out so that the swap utilization raises to 25%, each day a little more.
Iā€™m running on 2021.3.4
image
image

Already opened an issue on GitHub.

I detect a direct relation between memory increase and start/shutdown my notebook.

thatā€™s interesting, I will follow the issue on githubā€¦

I found that deleting old updates, addon and temporary installations that only take up disk space also frees up some memory, even though things shouldnā€™t be relatedā€¦
just try with SSH & Web terminal addon in Disable Protection Mode with the commands

df 

docker system df ā€“v

to monitor your overlay usage and with

docker image prune -a

docker volume prune

to clean you HA and check the memory usage. I had good a drop down.

2 Likes

Yes, the memory load dropped by 20% ā€¦ Thank you!

Hi.
Iā€™m having memory issues too.
Is there a way to find what is eating RAM?
3B+ and HA 2021.6.4 OS 6.0

Do you have deConz in use? Then open deconz (not Phoscon) and deactivate the display of LQI and neighbor links. That decreased memory and cpu usage rapidly here
image

PS: Dresden-Electronics promised an improved memory handling beside a general performance improvement for the next version which will be 6.10.x

hi, thanks for the reply.
No, Iā€™m using ZHA.
Bofore available ram went to around 40MB, I was not even able to restart, after trying many times to get to supervisor, I managed to restart core.
Now available ram is quickly decreasing again.

image

Edit: I turned off EspHome add-on RAM looks stable. Letā€™s see what happens in few hours. Problem started around 3 weeks ago, when I installed EspHome, but Iā€™m not sure that they are related, I didnā€™t find other people complaining about it.

Nothingā€¦
Memory usage keeps on slowly increasing:

image

I tried to turn off all add-ons, but nothing changed. Is there a way to understand waht is using and not releasing memory?

image

Increasing swap size helped me. See my post earlier Home Assistant - High Memory Usage - #106 by Kariharri

1 Like

Thank you.
Do you know if this can be done in Hassio?

see this post: Home Assistant - High Memory Usage - #117 by MAurOsX

Thank you.
I followed the instructions and increased the swap file, now itā€™s 2.23G.
Letā€™s see if it will helpā€¦

I did it and never had more then 7% usage again.

It looks working!
Swap file has a peak of 562MB, probably in this kind of situation the system hanged/rebooted, now when the peak usage is over, the system gets back to normal and memory is released.
Thank you very much!!!

Are you folks running HA on your own host vm or are you using HA OS? If the latterā€¦ how are you getting the HA OS system stats into grafana?