Memory leak during Home Assistant upgrade

I’ve been trying to figure out why hassio on my RPi3 runs out of memory and I think I’ve found the issue to be the HA upgrades.

Just clicked the upgrade button in the web UI for the 0.53.1 to 0.54 upgrade and while the upgrade worked, I’m now sitting at ~120mb free instead of the ~500mb I see after booting it up and loading the web UI.

Have tried freeing the memory by doing the following things but neither helps:

  • SSH’d in (to the ssh addon) hassio homeassistant restart
  • hassio supervisor reload

Restarting the whole host does work (hassio host reboot).

Has anyone else seen this? I haven’t tried setting up SSH access directly to the host yet.

If you don’t have any performance issues with your system it is probably only Linux memory management at play

I do end up seeing an issue where loading the web UI causes an increase in memory usage, and then homeassistant restarts automatically. Unfortunately I don’t see any errors in the homeassistant or supervisor logs when it happens. This restart loop will continue until I completely reboot the host.