-
Notifications
You must be signed in to change notification settings - Fork 29.5k
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
High CPU load on single-CPU VM #17097
Comments
@hgotur Do you see any errors in the dev console? |
Also, please use process explorer and provide the full list of arguments of the process going crazy |
Exact same problem here. Basically a brand new 2012 R2 VM install on VMWare. 2GB RAM. Brand new install of vscode, with no plugins. It's practically impossible to use. It takes 30+ seconds for the window to even appear after clicking the icon to launch the application. Don't know if it'll ever come up enough for me to get to the command palette. I am using the latest insiders build. "code - insiders.exe" is consuming the CPU. Hope that helps. |
We have heard reports and can reproduce of VS Code running very slow on VMs when they are configured with 1 CPU. |
@bpasero It does only have one CPU. I'll fiddle some knobs when I get back from vacation and see if it fixes the problem. |
These are the extensions. There were no errors in the dev console. My configuration is also a VM with one CPU. |
Same issue here with version 1.8, single core CPU is maxed out. Fresh install, no extensions. Any known workarounds? Would using an earlier version help? Is this a VS Code issue or Electron? Update: Found the following issue on SO which could indicate OS ver could be an issue. I'm also using Windows Server 2012 R2 which should be the same codebase as Windows 8.1 which is noted as not affected. Also see electron/electron#7839. Should this be mentioned in release notes as a known issue? |
I have same issue on core i7. It is not VM.
|
Same here. 100% cpu just from opening vscode. no extensions, |
CONFIRMED SOLUTION -- We added another core to our existing VM and the CPU issues disappeared for both Visual Studio Code and Atom (Both of which rely on Electron). At this point I believe this is actually electron issue electron/electron#7839. |
Closing this as question. Our application model highly depends on multiple process. This isn't fit single core machines well but we also believe that's a problem of VMs. Single core hardware should be very rare these days. |
Rare, like my brand new Raspberry PI Zero W? Sorry, I get it. But it's frustrating. I love VS Code. |
@jrieken How about adding the need for multiple cores in release notes and VS Code requirements? |
cc @gregvanl for the comment above |
IMHO this should be fix/improved. Code is a good tool to edit files on the fly and should be a proper lightweight alternative to the big IDE's. For me this is the exact solution where i would use Code instead of any other IDE/Editor, systems with low resources and I don't want to install VS(or any other IDE), code is fast and easy to install and gives me just what i need for debugging and some quick editing of my source files. |
IMNSHO at the very least, VisualStudioCode should detect that it's running on a single-core and give an error to the user at launch time, informing him about this limitation, otherwise the UX is quite ludicrous. |
@jrieken Problem still reproduced on version 1.13 |
I am getting this issue on Hyper-V single CPU VM. CPU is pegged at 100% just starting up Code and stays pegged. The OS is unusable. I do not understand how this issue is closed. This is not a case of "VS Code is a resource intensive app, you can't expect it to run well on a single core VM!!". There appears to be some horrible degenerate bug here. |
Version 1.5.2 takes a minute to launch but otherwise works well on single core machines. |
Version 1.15.1, clean installation without extensions in a single hyper-v VM Windows Server 2012 R2 (6.3.9600) 100% cpu. Upgraded to 2 cpu and VS Code starts up without any problem |
@costica-moldovanu AFAIK the single core CPU issue isn't VS Code per se, but rather the underlying use of Electron. As for TFS, you can also use the TFS CLI. |
Thx |
Steps to Reproduce:
I tried uninstall and reinstall and it still happens. I open VS Code, and the CPU usage goes up. It goes back down after a few seconds, but shoots back up again. This is despite not opening any files or doing anything on VS Code.
The text was updated successfully, but these errors were encountered: