-
-
Notifications
You must be signed in to change notification settings - Fork 29k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Yaml reload causes memory % increase which is not released #112811
Comments
Hey there @home-assistant/core, mind taking a look at this issue as it has been labeled with an integration ( Code owner commandsCode owners of
(message by CodeOwnersMention) homeassistant documentation |
my issue really is on the reloading Yaml (themes) especially. generic memory increase might better be served with another issue? and some logs if you have them. |
I have nothing in the log's, but in my case I was not making changes that require yaml reloads. |
To clarify: my issue is in fact related to yaml reloading. |
Right, let me send the copy pasta related to performance issues:
Maybe because because of the reload the memory can rise quicker, we don't need full 4 hours, but let's see what comes out of it |
related issue #112811 When the exception hits, the config will end up being saved in the traceback so the memory is never released. This matches the check_config code to homeassistant.config to avoid having the exception thrown.
I thought it was system_log but its not Going to have to patch traceback |
Sadly I think I'm doing the path of another leak and not the original one being reported here |
|
* Add missing platforms_exist guard to check_config related issue #112811 When the exception hits, the config will end up being saved in the traceback so the memory is never released. This matches the check_config code to homeassistant.config to avoid having the exception thrown. * patch * merge branch
* Add missing platforms_exist guard to check_config related issue #112811 When the exception hits, the config will end up being saved in the traceback so the memory is never released. This matches the check_config code to homeassistant.config to avoid having the exception thrown. * patch * merge branch
The problem
using C t load the quick menu and reload Themes consistently ups the memory % with .2 to .5 %, whihc is not released afterwards.
A single reload is not very therefor not that noticeable, but testing themes and doing it often in a row caused this to be a significant rise.
What's more, reloading the complete Yaml (many individual components are no longer available in the Yaml reload page, so user clicks Reload all) causes the system to hang for a very long time.
could it be that
What version of Home Assistant Core has the issue?
2024.4.0.dev20240309
What was the last working version of Home Assistant Core?
No response
What type of installation are you running?
Home Assistant OS
Integration causing the issue
core
Link to integration documentation on our website
https://www.home-assistant.io/integrations/homeassistant/
Diagnostics information
No response
Example YAML snippet
No response
Anything in the logs that might be useful for us?
Additional information
direct results of reloading Theme via 'C Themes'
![Schermafbeelding 2024-03-08 om 17 01 21](https://private-user-images.githubusercontent.com/33354141/311429468-810c9d58-9576-49e2-b99b-e8921184e047.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjEwNzE5MjEsIm5iZiI6MTcyMTA3MTYyMSwicGF0aCI6Ii8zMzM1NDE0MS8zMTE0Mjk0NjgtODEwYzlkNTgtOTU3Ni00OWUyLWI5OWItZTg5MjExODRlMDQ3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA3MTUlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNzE1VDE5MjcwMVomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPWJjNzQxM2QyYmViMDhjZDM4YzQ5M2VjOTMwYzExN2NjMGI4OWZjM2ExOTZhMzBiMmFmNmE1NTY0MjNlNjkyY2UmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.-Qdd5BiT7-xwI0uSWHJ0PWZhc50hBFIUF7x9PGUQKcs)
The text was updated successfully, but these errors were encountered: