Skip to content
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

Open
3 of 11 tasks
benblazak opened this issue May 12, 2023 · 6 comments
Open
3 of 11 tasks

100% CPU usage and high memory usage #2656

benblazak opened this issue May 12, 2023 · 6 comments
Labels
bug Something isn't working

Comments

@benblazak
Copy link

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:

  • VS Code for Desktop
  • Hassio Add-on
  • Visual Studio Online
  • Other:

I'm running VS Code on:

  • Windows
  • Mac
  • Linux

I'm accessing my files:

  • From local disk
  • Via remote SSH
  • Smb
  • Other:
@benblazak benblazak added the bug Something isn't working label May 12, 2023
@benblazak benblazak changed the title 100% CPU usage 100% CPU usage and high memory usage May 12, 2023
@piersdd
Copy link

piersdd commented Jul 22, 2023

I've also persistently struggled with this. Although my connection is typically;

  • SMB

@hellcry37
Copy link

hellcry37 commented Jan 19, 2024

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

@Ftown14
Copy link

Ftown14 commented Feb 10, 2024

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.

VS Issue

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.

VS Issue 2

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.

@MostHated
Copy link

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.

@spacerunner5
Copy link

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.

@AlexW75
Copy link

AlexW75 commented Oct 15, 2024

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.

VS Issue

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.

VS Issue 2

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.

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

7 participants