-
-
Notifications
You must be signed in to change notification settings - Fork 33.8k
Memory issue #6165
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
Comments
I think these issues might have been localized. unable to reproduce on 0.39.0.dev |
Please add a list of components and platform. On my raspbeery I have use only 20% |
Same Issue. After shutting components off one by one, I found the emulated hue is my culprit. Also, there is no history when my emulated hue is active. /w Emulated Hue (Taken at 1 minute intervals) w/o Emulated Hue (Taken at 1 minute intervals) |
History issue might be browser cache. Take with a grain of salt.. |
I have also seen this issue, and tracked it down to the emulated_hue component. The ram usage just seems to grow and grow. I'm running on a normal server, so it took a while, but eventually ate up the RAM on my server + swap. I'm not quite sure where to go to provide more detail- I turned logging up to debug and didn't see anything terribly useful in the logs while this was all happening. |
Do you have aiohttp 1.3.3 running? I think that is the Memory issue they fix with that. Mybe you need to remove the dept folder with inlcude a older version? |
Deleted all aiohttp entries in deps and restarted. aiohttp-1.3.3.dist-info added to deps. Still having issue with the emulated hue. |
Confirming memory issue here since upgrading to 38.4 |
Okay from 0.38.3 to 0.38.4 have no change on aiohttp. Can you disable discovery? That have change the library |
Removed discovery component and seems stable, proc and memory usage are normal again.
…---
Christopher Aloi
Sent from my iPhone
On Feb 23, 2017, at 5:05 PM, Pascal Vizeli ***@***.***> wrote:
Okay from 0.38.3 to 0.38.4 have no change on aiohttp. Can you disable discovery? That have change the library
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub, or mute the thread.
|
I agree- disabling discovery seemed to clear up the problem. Also note that I tried to re-enable discovery, while at the time disabling my normal hue light component- thinking perhaps the issue was being caused by the hue component discovering the emulated_hue component. That did not make any difference - memory/CPU was still high. |
I'm seeing this issue in 0.38.3... and I already had the discovery component disabled... now that i think about it... i think the machine started eating memory when i told alexa to activate a scene via emulated_hue. |
Also seeing this in 0.38.4 This starts to appear in my logs after a while (like 2 hours) hass is using more than 12GB (of 16GB) of ram |
So... I added back the "type" for my emulated_hue component and everything seems back to normal... edit: I spoke too soon... it ran out of memory again. |
Also have the memory issue since 0.38.4. Reverted back to 0.38.3 and everything is fine again. |
I set this up to recycle 0.38.4
Unfortunately, it doesn't seem to work 100%, I just had to manually cycle it a little while ago because the same message was appearing again. I briefly looked at emulated_hue component tagged in 0.38.1 to 0.38.4, doesn't seem like anything changed between point releases (last update was 17 days ago), wonder what is causing this. |
Same issue here after the upgrade to 0.38.4, the only other action I performed was to chnage the emulated hue component from alexa to google_home.
|
Seems to also be happening after update to 0.39.0
|
To disable the updater does also not help? Only the discover (netdisco)? |
I am also still seeing this in 0.39.0. I'll be rolling back to 0.38.3 again. |
I'm on 39.1 under docker; |
okay, I've tracked down my high-cpu problem to using two hikvision binary_sensors defined as the following:
with both sensors defined in configuration, python process constantly takes 70% CPU. As long as I comment out the second sensor, everything goes back to normal. |
Interesting. I also have two cameras setup with hikvision binary with a docker install and don't have any high CPU or memory problems. I don't use emulated_hue though. Can you replicate this with a bare HASS instance and just the hikvision sensors defined? |
@mezz64 - confirmed. Removed everything, leaving only sections "homeassistant" with basic settings, "frontend", "http" and "binary_sensor" defined as above. Should I create a new issue as it seems a separate problem? This is 0.39.1 official docker image. |
Kind of hard for me to see what changed between 38.3 and 38.4+ on github, so today I fired up sourcetree and pull down the repo... It looks like the only thing that changed was bumping netdisco from 0.8.2 to 0.8.3 and a bunch of UI changes in js/html files... Looking at netdisco repo, support was added for Philips hue upnp and some other stuff in that release. My guess is whatever that code is doing it is causing crap ton of cpu / memory consumption... To test this theory, I rolled back netdisco by doing the following:
So far my 2x CPUs have dropped from both hovering around 80% cpu to around 20% each. And memory seems to be stable at couple hundred MBs. I'll continue to watch it... but if others are experiencing this you may want to try rolling back netdisco too. |
@vladm You can create a seperate issue if you wish. I'm fairly certain something else is going here though. Was your "deps" folder empty? I was running on dev, but switched to the latest release container just now to verify from my end an am still not seeing anything significant... 5% cpu and about 150MB of memory being used. Anyone else with memory/cpu issues using hikvision binary sensors? |
@jumpkick I've submitted a PR to the netdisco repo which at least resolves the issue with the discovery component (home-assistant-libs/netdisco#99) |
Rolling back netdisco to 0.8.2 seems to have fixed my mqtt/memory leak issue! I'll check the log/see if mysensors are still reporting properly in the morning. |
I have a proper Netdisco fix here: #6321 Would love to get some people testing this. |
Would love to test because this issue is driving me bonkers... but fairly new to this. I'm using docker. How can I help? Should i just pull the dev image in docker? |
Memory usage is low and stable with #6321 deployed. 👌 |
I ran this command to install netdisco 0.9.0: So far, so good! |
Uh oh!
There was an error while loading. Please reload this page.
Home Assistant release (
hass --version
):0.38.4
Python release (
python3 --version
):3.4.2
Component/platform:
HASS / RPI3.
Description of problem:
Getting memory issue when trying to restart. This might be a local issue on my pi but just popped up with the upgrade to 38.4
Traceback (if applicable):
The text was updated successfully, but these errors were encountered: