-
-
Notifications
You must be signed in to change notification settings - Fork 119
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
100% CPU usage and high memory usage #2656
Comments
I've also persistently struggled with this. Although my connection is typically;
|
same here, happens sometimes to me too, find my vm in 100% proc / ram load, as soon as i kill vscode proc everything goes to normal runing on a linux debian vm |
I just stumbled upon this plugin causing my CPU and memory usage problems. First let me start off, I'm a Linux noob, I started maybe 6 months ago, so if I say something dumb, please bare with me lol, What I found out by using the 'top' command was 'node' was using a lot of CPU. Also, if I would leave the VSC instance, and go back, it would add another 'node' process. I tested this 3 times to verify before I shutdown the addon to stop the heat up of my Pi. I used 'ps -Flww -p' with the PID at the end and it would show me a folder path to the .js file. I'm guessing this is the file that is being ran with node. Part of the path had the authors name, which allowed me to look at all the plugins that were enabled. Of course that was this plugin and once I disabled and restarted VSC in HA the issues when away. the CPU usage would go back to 0% for the Addon once I left the VSC screen. I reenabled this plugin again, restarted and problem started again. So, disabled and now it works without issue, except the color formatting is gone. Again, I'm Linux dumb, so forgive me, but I'm guessing that means the Node command that is left running when you leave/disconnect from the VSC instance is not being shutdown and is running as a zombie. Hopefully there is a fix for this soon. I like VSC so much better than File Editor. I need all the help I can get with syntax errors. |
I was having this issue as well on Ubuntu. One sometimes two child processes kept rabidly going from something like 500mb to 2-2.5gb and then resetting back down to 500mb over and over, while using a larger than normal amount of CPU. Enough to ramp up my fans constantly. I had to remove the addon, as it was doing it at all times no matter what type of project I had opened. |
A suspicion here: Is it possible that the HA extension uses the Dev Containers VSCode extension OR some users installed the entire Remote Development Extension pack in VSCode (which includes Dev Containers)? Just curious weather this could be related to microsoft/vscode-remote-release#9586 If someone can confirm that the issue is related, please also drop a comment on the VSCode issue. |
Thank you for your analysis; I'm experiencing the same issue. As soon as I open VSC, the CPU usage remains consistently between 3-5%, and the memory usage starts to increase. Restarting VSC temporarily resolves the problem until it's opened again. The issue began after the latest VSC update, which included changes to the YAML syntax. |
MacOS 13.3.1 on an M2 MacBook Air
VSCode 1.78.0
I've been noticing slow MacOS UI response the last couple days, and it seems it was some Code Helper tasks related to this plugin, along with a kernel task doing I'm not sure what.
Uninstalled the plugin, as I don't need it right now (my Home Assistant instance is more or less set up).
No idea how to reproduce, feel free to close if it looks like it was specific to my system. Just wanted to note the issue.
Extension runs in:
I'm running VS Code on:
I'm accessing my files:
The text was updated successfully, but these errors were encountered: