core: Home Assistant Memory Leak
The problem
EDIT: I edited this to remove the ONVIF integration as suspicious of the problem.
There is some memory leak ~~in ONVIF, as stated here: https://github.com/home-assistant/core/issues/42390~~
It was fixed in theory in 0.117.2 but it seems at least in my case this is wrong. I was asked to open a new issue, so this is.
Several hours after removing ONVIF seems it does not fix the issue, so is clear that in my case the leak is at another place.
Here is a sample after installing 0.117.2 from 0.116.:

Environment
- Home Assistant Core release with the issue: 0.117.2
- Last working Home Assistant Core release (if known): 0.116.4
- Operating environment (OS/Container/Supervised/Core): Home Assistant OS
- Integration causing this issue: Unknown
- Link to integration documentation on our website:
Problem-relevant configuration.yaml
Is a flow.
Traceback/Error logs
Nothing.
Additional information
About this issue
- Original URL
- State: closed
- Created 4 years ago
- Comments: 124 (40 by maintainers)
I merged the fix for Brother and tagged it for 0.117.4 - Will keep this open since there are some reports in here of an issue without the Brother integration enabled.
I’m wondering if the issue really is within HA core, or maybe in the OS or Supervisor. As far as I can tell, all users seeing this issue are using a supervised setup in one shape or form. The few users I know using docker aren’t seeing this issue (incl myself), nor did I see any venv user in this thread.
0.117.4. But I don’t see any change related to this in 0.117.5 vs .4 correct?
@elupus OK, should I open a separate ticket?
Yes, that’s the only difference. Thanks for help with testing.
@McGiverGim Please only replace
__init__.pyfile.Of course, I will do it and report in one or two hours…
The profiling I added currently only profiles a 60 second window. If the leak is slow (MB over hours) it won’t help as is. If you want to run it as a custom component, it might be better to comment out lines 101 and 102 in
__init__.pyto get a full memory snapshot when run.I am experiencing the issues as well. I have the Brother integration as well. I have deleted it for now to see if there is something there.