core icon indicating copy to clipboard operation
core copied to clipboard

LTSS takes down HA because of memory leak

Open michalk-k opened this issue 1 year ago • 2 comments

The problem

I've been advised to inform the Core maintainers that ltss custom component can cause HA instability due to memory leak. In my setup it fills the whole memory (8GB) in two days, causing HA to restart. With this component excluded, the setup is rock-stable - I tested it multiple times.

Since I'm a new user of ltss I cannot say since which version the ltss has this flaw.

The error the ltss failed on, might be possibly interesting for the HA core owners too. I've filed the issue to ltss repository: https://github.com/freol35241/ltss/issues/213

What version of Home Assistant Core has the issue?

core-2024.8.3

What was the last working version of Home Assistant Core?

N/A

What type of installation are you running?

Home Assistant OS

Integration causing the issue

LTSS

Link to integration documentation on our website

https://github.com/freol35241/ltss

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

michalk-k avatar Oct 11 '24 10:10 michalk-k

Just a heads up that I am also experiencing a pretty bad memory leak and I am NOT using the LTSS custom component. I'm not done with my own troubleshooting yet, but I have confirmed that the memory leak occurs even when running Home Assistant in safe mode (no custom integrations).

cryptk avatar Oct 12 '24 22:10 cryptk

joostlek avatar Oct 12 '24 23:10 joostlek

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

So while the problem causing ltss to stop (and in turn leaking memory) has been fixed, the memory leak seems to be not fixed.

Recently TimescaleDB stopped responding, which again rendered in increasing usage of memory.

So, there is serious suspicion that LTSS starts eating memory in an uncontrolled manner after losing the ability to store data in TimescaleDB.

Even worse, after reconnecting to TimescaleDB, it doesn't release the memory.

image

michalk-k avatar Jan 10 '25 23:01 michalk-k

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.

There hasn't been any activity on this issue recently. Due to the high number of incoming GitHub notifications, we have to clean some of the old issues, as many of them have already been resolved with the latest updates. Please make sure to update to the latest Home Assistant version and check if that solves the issue. Let us know if that works for you by adding a comment 👍 This issue has now been marked as stale and will be closed if no further activity occurs. Thank you for your contributions.