core: Memory leak after upgrade to 2025.4.0 on RPi5
The problem
System Information
| version | core-2025.4.0 |
|---|---|
| installation_type | Home Assistant OS |
| dev | false |
| hassio | true |
| docker | true |
| user | root |
| virtualenv | false |
| python_version | 3.13.2 |
| os_name | Linux |
| os_version | 6.6.74-haos-raspi |
| arch | aarch64 |
| timezone | Europe/Berlin |
| config_dir | /config |
Home Assistant Community Store
| GitHub API | ok |
|---|---|
| GitHub Content | ok |
| GitHub Web | ok |
| HACS Data | ok |
| GitHub API Calls Remaining | 5000 |
| Installed Version | 2.0.5 |
| Stage | running |
| Available Repositories | 1625 |
| Downloaded Repositories | 10 |
Home Assistant Cloud
| logged_in | false |
|---|---|
| can_reach_cert_server | ok |
| can_reach_cloud_auth | ok |
| can_reach_cloud | ok |
Home Assistant Supervisor
| host_os | Home Assistant OS 15.1 |
|---|---|
| update_channel | stable |
| supervisor_version | supervisor-2025.03.4 |
| agent_version | 1.7.2 |
| docker_version | 28.0.4 |
| disk_total | 468.7 GB |
| disk_used | 157.2 GB |
| healthy | true |
| supported | true |
| host_connectivity | true |
| supervisor_connectivity | true |
| ntp_synchronized | true |
| virtualization | |
| board | rpi5-64 |
| supervisor_api | ok |
| version_api | ok |
| installed_addons | File editor (5.8.0), Terminal & SSH (9.16.0), Home Assistant Google Drive Backup (0.112.1), Samba share (12.5.0), AdGuard Home (5.2.7), Dynu DNS (1.0.1) |
Dashboards
| dashboards | 3 |
|---|---|
| resources | 8 |
| views | 4 |
| mode | storage |
Network Configuration
| adapters | lo (disabled), end0 (enabled, default, auto), hassio (disabled), docker0 (disabled), veth5f8eee8 (disabled), vethee96ef2 (disabled), veth9470df6 (disabled), vethe593723 (disabled), veth8700d01 (disabled), vethb85f77a (disabled), veth4efbe8a (disabled), veth1e95633 (disabled), veth3ca74fb (disabled), vethe25382a (disabled) |
|---|---|
| ipv4_addresses | lo (127.0.0.1/8), end0 (192.168.0.3/24), hassio (172.30.32.1/23), docker0 (172.30.232.1/23), veth5f8eee8 (), vethee96ef2 (), veth9470df6 (), vethe593723 (), veth8700d01 (), vethb85f77a (), veth4efbe8a (), veth1e95633 (), veth3ca74fb (), vethe25382a () |
| ipv6_addresses | lo (::1/128), end0 (2a02:8070:2280:f4a0:b545:73b2:818:da12/64, fe80::b2bc:b55c:2cc4:9aba/64), hassio (fe80::d823:3aff:fe46:367c/64), docker0 (fe80::4c12:f2ff:fe7c:3565/64), veth5f8eee8 (fe80::d460:d8ff:fe9f:f50f/64), vethee96ef2 (fe80::5c21:cfff:fef2:eeef/64), veth9470df6 (fe80::1075:2aff:fed1:5222/64), vethe593723 (fe80::a8cd:34ff:fe87:46f/64), veth8700d01 (fe80::14b7:bfff:fee7:4bba/64), vethb85f77a (fe80::c819:42ff:fe18:f6a3/64), veth4efbe8a (fe80::f054:16ff:fe7f:a62a/64), veth1e95633 (fe80::244c:93ff:feac:564d/64), veth3ca74fb (fe80::d09a:b3ff:fe58:956c/64), vethe25382a (fe80::f40c:dfff:feaa:d7f8/64) |
| announce_addresses | 192.168.0.3, 2a02:8070:2280:f4a0:b545:73b2:818:da12, fe80::b2bc:b55c:2cc4:9aba |
Recorder
| oldest_recorder_run | 24. März 2025 um 12:53 |
|---|---|
| current_recorder_run | 3. April 2025 um 04:37 |
| estimated_db_size | 196.18 MiB |
| database_engine | sqlite |
| database_version | 3.48.0 |
Spotify
| api_endpoint_reachable | ok |
|---|
What version of Home Assistant Core has the issue?
core-2025.4.0
What was the last working version of Home Assistant Core?
core-2025.3.x
What type of installation are you running?
Home Assistant OS
Integration causing the issue
unknown
Link to integration documentation on our website
No response
Diagnostics information
No response
Example YAML snippet
Anything in the logs that might be useful for us?
Additional information
No response
About this issue
- Original URL
- State: closed
- Created 2 years ago
- Reactions: 3
- Comments: 45 (16 by maintainers)
@Mark612 please update to 2025.4.2 and check again (it contains a fix for a memory leak). If it still occur, restart HA in safe mode and check if the issue still occur, thx 👍
this is the PR with the fix 😉
as first check you could also enable the profiler as mentioned in https://github.com/home-assistant/core/issues/142261#issuecomment-2781344814
Please report back after 2-3 days as first leak happened 5 hrs after upgrade then another one hit todays night so 5 days from last one.
Have tested it - the problem is gone with 2025.4.1. The jumps of memory usage are ok and explainable. (Terminal and VSC when started)
No slow memory leak any more.
I tracked my memory leak issue to a custom component “StreamAssist”, and found a related issue raised for it https://github.com/AlexxIT/StreamAssist/issues/63#issuecomment-2783443006.
Removing the
streamassistfrom myconfig/custom_componentsfixed the memory leak issue for me. I will monitor my HA over the next couple of days, and report back if I observe the slow memory leaks that others have reported. In my case, the memory leak was filling up 50GiB in 1-2 minutes, causing HA to hang and get OOM Killed.After update to 2025.4.1 i think leak stopped. Сontinue monitor