Vscode-remote-release: WSL2 High CPU Usage when running VSCode WSL2 with IntelliJ Idea + VcXsrv

Created on 17 Dec 2020  路  3Comments  路  Source: microsoft/vscode-remote-release

  • VSCode Version: 1.52.1
  • Local OS Version: Windows 10 19041.572
  • Remote OS Version: 4.19.128-microsoft-standard
  • Remote Extension/Connection Type: WSL2

Steps to Reproduce:

  1. Download, install and run VcXsrv with -multiwindow -clipboard -wgl -ac -noprimary -clipboard
  2. Set DISPLAY environment variable
  3. Download, install and run IntelliJ Idea
  4. Run VSCode on WSL2

Does this issue occur when you try this with VSCode without WSL?: No
Does this issue occur when you try this with VSCode with WSL and all extensions are disabled?: Yes

I took a screenshot when I run everything together. Although 12% of CPU usage isn't as much, it increases to 60%~80% when I run my Java application on Intellij. Without Intellij, VSCode takes less then 1% of my CPU, my application and Intellij stays below 1% of CPU usage.
image
Why is VSCode using more CPU when I open Intellij? That's what I wonder.
This still happens when I open VSCode and Intellij in different working directories.

wsl

All 3 comments

This might be caused by our new automatic port forwarding feature which scans the remote OS for available ports in order to forward them locally (https://github.com/microsoft/vscode/issues/112843)

after applying https://github.com/microsoft/vscode/issues/112843#issuecomment-748895800 it is working fine
thank you 馃

FYI @alexr00

Was this page helpful?
0 / 5 - 0 ratings