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

VSCode spawns multiple processes and slows down the whole system #42819

Closed
svdHero opened this issue Feb 2, 2018 · 15 comments
Closed

VSCode spawns multiple processes and slows down the whole system #42819

svdHero opened this issue Feb 2, 2018 · 15 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@svdHero
Copy link

svdHero commented Feb 2, 2018

  • VSCode Version:
    Version 1.19.3
    Commit 7c4205b
    Datum 2018-01-25T10:36:34.867Z
    Shell 1.7.9
    Renderer 58.0.3029.110
    Node 7.9.0
    Architektur x64

  • OS Version:
    Windows 8.1

Steps to Reproduce:

  1. Install VSCode
  2. Open VSCode
  3. Check Windows Task Manager

Does this issue occur when all extensions are disabled?: Yes

When Visual Studio Code is opened and idle, the whole system slows down extremely and I cannot work anymore. When checking the Windows Task Manager, I can see 7 VSCode processes which bring my CPU workload up to 99%, although VSCode is idle, has no folder opened and no extensions installed.

What's wrong here? I have successfully used VSCode in the past on other computers (both Windows and Linux) and didn't have said problems.

visual_studio_code_performance

@bpasero
Copy link
Member

bpasero commented Feb 2, 2018

Can you follow this wiki and post the results back here to understand more about why performance is so bad for you: https://github.com/Microsoft/vscode/wiki/Performance-Issues

Thanks!

@bpasero bpasero added the info-needed Issue requires more information from poster label Feb 2, 2018
@svdHero
Copy link
Author

svdHero commented Feb 2, 2018

Thank you bpasero for the link.

The command code --status has the output:

W:\Foo>code --status


Version:          Code 1.19.3 (7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba, 2018-01-25T10:36:34.867Z)
OS Version:       Windows_NT x64 6.3.9600)
CPUs:             Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz (8 x 3691)
Memory (System):  15.93GB (9.90GB free)
VM:               0%
Screen Reader:    no

CPU %   Mem MB  Process
   -1       66  code main
   -1       62     shared-process
   -1      170     window (Willkommen - Visual Studio Code)
   -1       49       extensionHost
   -1       10       "C:\Program Files\Microsoft VS Code\Code.exe" --reporter-url=https://rink.hockeyapp.net/api/2/apps/0ac07349c6e34e978fdfb42074932f22/crashes/upload --application-name=VSCode "--crashes-directory=C:\Users\XXXXX\AppData\Local\Temp\VSCode Crashes" --v=1
   -1       27       terminal
   -1        5         "c:\Program Files\Microsoft VS Code\resources\app\node_modules\node-pty\build\Release\winpty-agent.exe" \\.\pipe\winpty-control-14024-1-1d39c2e39066894-64e64bfd4a4f5dac9fe4cb4a7cb7f3a7 0 1 80 24
   -1        2           C:\Windows\system32\cmd.exe
   -1        6           C:\Windows\system32\conhost.exe 0x4
   -1       49     gpu-process


W:\Foo>

The profiler for the running extensions has the output:
CPU-20180202T135644.501Z.cpuprofile.txt

Can I provide anything else that might help?

@bpasero
Copy link
Member

bpasero commented Feb 2, 2018

I wonder if this issue is being caused by an installed extension. Can you try to run VS Code without extensions? From the command line (NOT the integrated terminal in Code), execute: code --disable-extensions and try your steps again to see if it reproduces. If you see it is an issue with the extension, please file it against the extension repository itself.

@bpasero
Copy link
Member

bpasero commented Feb 2, 2018

@dbaeumer fyi on code --status returning "-1" for CPU.

@svdHero
Copy link
Author

svdHero commented Feb 2, 2018

Like I wrote in my original post above: There are no extensions installed. I had also tried with with the explicit command line argument --disable-extensions which didn't bring any improvement.
Do you want me to produce the above outputs again with the --disable-extensions? I could do that.

@bpasero
Copy link
Member

bpasero commented Feb 2, 2018

Can you try to reproduce with our nightly insider builds? You can give our preview releases a try from: https://code.visualstudio.com/insiders/

@svdHero
Copy link
Author

svdHero commented Feb 2, 2018

Yeah, I will try that on monday. Thanks for your help so far.

@bpasero
Copy link
Member

bpasero commented Feb 2, 2018

ok

@svdHero
Copy link
Author

svdHero commented Feb 5, 2018

Okay. I've tried now with the insiders nightly build

Version 1.19.3
Commit 7c4205b
Datum 2018-01-25T10:36:34.867Z
Shell 1.7.9
Renderer 58.0.3029.110
Node 7.9.0
Architektur x64

and got:

C:\Users\Baeuerle>code --status


Version:          Code 1.19.3 (7c4205b5c6e52a53b81c69d2b2dc8a627abaa0ba, 2018-01-25T10:36:34.867Z)
OS Version:       Windows_NT x64 6.3.9600)
CPUs:             Intel(R) Xeon(R) CPU E5-1620 v2 @ 3.70GHz (8 x 3691)
Memory (System):  15.93GB (10.81GB free)
VM:               0%
Screen Reader:    no
CPU %   Mem MB  Process
   -1       74  code main
   -1       71     shared-process
   -1       45     gpu-process
   -1      227     window (Willkommen - Visual Studio Code)
   -1       27       terminal
   -1        5         "c:\Program Files\Microsoft VS Code\resources\app\node_modules\node-pty\build\Release\winpty-agent.exe" \\.\pipe\winpty-control-2888-1-1d39e586019ed8e-8d2e1b4b693c4e942044f25c9693099d 0 1 203 22
   -1        2           C:\Windows\system32\cmd.exe
   -1        6           C:\Windows\system32\conhost.exe 0x4
   -1       49       extensionHost
   -1       10       "C:\Program Files\Microsoft VS Code\Code.exe" --reporter-url=https://rink.hockeyapp.net/api/2/apps/0ac07349c6e34e978fdfb42074932f22/crashes/upload --application-name=VSCode "--crashes-directory=C:\Users\XXXXXXX\AppData
\Local\Temp\VSCode Crashes" --v=1

So far with the insiders, the performance problems seem to have vanished. CPU workload is happily chilling around 10 %. I will continue to monitor the behaviour. Thanks for the link to the nightly build.

@dbaeumer
Copy link
Member

dbaeumer commented Feb 5, 2018

The -1 value is indeed strange especially since this value is computed using ($counter.CookedValue / $logicalProcessors) (e.g. a division). Need to thing a little how this can happen.

@bpasero
Copy link
Member

bpasero commented Feb 5, 2018

@svdHero but do you see the slowdown also with insiders?

@svdHero
Copy link
Author

svdHero commented Feb 5, 2018

Ah, sorry that I did not express myself clearly enough. What I meant above was: "With the nightly insider build the performance problems seem to have vanished".
Also my status output above is from the insiders run.

I will correct my comment above.

@svdHero
Copy link
Author

svdHero commented Feb 5, 2018

@dbaeumer Could the -1 thing be related to my corporate antivirus? Also, I think my company IT has been installing the meltdown/spectre updates from Microsoft. Could that screw up the status? Just guessing...

@dbaeumer
Copy link
Member

dbaeumer commented Feb 5, 2018

@svdHero thanks for the idea. I have meltdown/spectre installed as well and it works for me. I also think that Anitvirus shouldn't be a problem either but I will keep it in mind when investigating.

@bpasero
Copy link
Member

bpasero commented Feb 5, 2018

Closing as per #42819 (comment)

@bpasero bpasero closed this as completed Feb 5, 2018
@vscodebot vscodebot bot locked and limited conversation to collaborators Mar 22, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

3 participants