Hope someone is able to assist with the following, I am experiencing a constant Ramp of CPU Usage on my HA. Using a i5, 500GB SSD, 32GB RAM NUC PC running Hyper-V. Virtual Machine is a Gen 2.
I have changed the following to try and resolve the problem:
First i recommend that you think about Your choice of Virtual Manager !
Beside You have a quit Capable NUC, With Hyper-V You lock everything into Windows , depending upon Microsofts “Habits” of Updating things.
And are you really “familiar” with Hyper-V ? , or is it just your first choice ?
File-Editor is the least Add-On you have to worry about
Beside that you don’t tell much about Your Setup, other than changing the VM’s allocated CPU’s
NOTE: Your Usage/Load in your picture, shows a “Pattern” Dig into it ! , Load & Memory Slightly increasing, CPU in same Pattern, until the CPU drops. ( Clearly the CPU “hooks on” to something) , could be as simple as a Loop in aTemplate, or in an automation
By “old habit” i use to check CPU/Memory/Disk-space etc after installing Software which one can suspect having an considerable impact.
Same reasons as Edwin mentions, i have abandoned both Studio-Code and Watchman among others (after using/monitoring it shortly), the overall benefits of these doesn’t defend the “spare” use for these in a Homeassistant environment, there are other means of “editing/monitoring”
Thank you for the input. It looks like there is a loop in a lighting automation that I need to investigate further.
Regarding the drops in the CPU Graph, those were just due to my manual restarts.
The system handles over 300 devices. I have been troubleshooting this for a week, so I am fairly confident the issue isn’t with the general system/VM configuration, but likely specific to this behavior.
Yeah The time-span nor reason of your “pics” pattern, is not obvious, for someone “in the other end” not sitting next to you, or being inside your head
Or knowing how your Setup looks like in either Hardware, Integrations/Add-ons Configurations etc.
PS: When/if you post a picture, you could add commends to it, explaining what it “shows” and your thoughts in that regards
I.E Memory is fairly “stable” and NOT high … Unless You have dedicated 16GB to your VM
This is a good old fashioned troubleshooting issue.
first disable addons half at a time. If it stops it’s in the half you disabled if not tf
Utn them back on and try the other half.
If that doesn’t get it start the same process with your integrations.
You’ll fighre it out with brute force that way.
Also I’m an ex Microsoft field engineer. Desktop HyperV is the worst possible choice for multiple reasons the least of which Is how they (don’t) handle usb pass through I’m ex MSFT and I use Proxmox for this. :). Good luck