Closed joostvanviegen closed 1 year ago
Thanks for creating this issue! It looks like you may be using an old version of VS Code, the latest stable release is 1.78.0. Please try upgrading to the latest version and checking whether this issue remains.
Happy Coding!
I think I figured it out. The system info output shows a lack of gpu utilization because of missing drivers / connectivity / support inside the container.
Type: Performance Issue
Selecting text (or empty area) in the terminal of vscode causes an immediate cpu spike. 1: Open terminal 2: Get some output 3: Select output 4: Big cpu spikes
Possible causes on my end: vscode is running in a toolbox container on Fedora Silverblue which might be the cause of the problem. On the other hand selecting text in the code editor itself is fine and performance in the rest of the app also seems fine.
VS Code version: Code 1.77.3 (704ed70d4fd1c6bd6342c436f1ede30d1cff4710, 2023-04-12T09:16:52.732Z) OS version: Linux x64 6.2.14-300.fc38.x86_64 Modes: Sandboxed: No
System Info
|Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-10310U CPU @ 1.70GHz (8 x 3519)| |GPU Status|2d_canvas: unavailable_softwarecanvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: disabled_software
multiple_raster_threads: enabled_on
opengl: disabled_off
rasterization: disabled_software
raw_draw: disabled_off_ok
skia_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: unavailable_software
webgl2: unavailable_software
webgpu: disabled_off| |Load (avg)|3, 2, 2| |Memory (System)|15.37GB (3.98GB free)| |Process Argv|| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|gnome| |XDG_CURRENT_DESKTOP|GNOME| |XDG_SESSION_DESKTOP|gnome| |XDG_SESSION_TYPE|wayland|
Process Info
``` CPU % Mem MB PID Process 0 94 25988 code main 0 16 25993 zygote 0 157 26172 gpu-process 0 16 25994 zygote 0 0 25996 zygote 0 79 231135 window [4] (Issue Reporter) 0 31 26117 utility-network-service 0 236 26143 window [1] (WebRouter.java - notes - Visual Studio Code) 0 79 26197 shared-process 0 47 26245 ptyHost 0 0 35851 /usr/bin/fish 0 0 38766 /usr/bin/fish 0 0 193778 /usr/bin/fish 0 0 229998 /usr/bin/fish 0 0 26300 /usr/share/code/bin/code-tunnel tunnel --parent-process-id 26197 --accept-server-license-terms --log info --name toolbox 0 0 231153 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 47 35424 fileWatcher [1] 0 252 35425 extensionHost [1] 0 110 35548 /var/home/joost/.vscode/extensions/redhat.java-1.18.0-linux-x64/jre/17.0.7-linux-x86_64/bin/java --add-modules=ALL-SYSTEM --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/sun.nio.fs=ALL-UNNAMED -Declipse.application=org.eclipse.jdt.ls.core.id1 -Dosgi.bundles.defaultStartLevel=4 -Declipse.product=org.eclipse.jdt.ls.core.product -Djava.import.generatesMetadataFilesAtProjectRoot=false -Dfile.encoding=utf8 -XX:+UseParallelGC -XX:GCTimeRatio=4 -XX:AdaptiveSizePolicyWeight=90 -Dsun.zip.disableMemoryMapping=true -Xmx1G -Xms100m -Xlog:disable -javaagent:/var/home/joost/.vscode/extensions/redhat.java-1.18.0-linux-x64/lombok/lombok-1.18.27.jar -XX:+HeapDumpOnOutOfMemoryError -XX:HeapDumpPath=/var/home/joost/.config/Code/User/workspaceStorage/c4f16c953437bdc529018851c075f590/redhat.java -Daether.dependencyCollector.impl=bf -jar /var/home/joost/.vscode/extensions/redhat.java-1.18.0-linux-x64/server/plugins/org.eclipse.equinox.launcher_1.6.400.v20210924-0641.jar -configuration /var/home/joost/.config/Code/User/globalStorage/redhat.java/1.18.0/config_linux -data /var/home/joost/.config/Code/User/workspaceStorage/c4f16c953437bdc529018851c075f590/redhat.java/jdt_ws 0 0 35705 java -Dfile.encoding=utf8 -jar /var/home/joost/.vscode/extensions/vscjava.vscode-gradle-3.12.7/lib/gradle-language-server.jar 0 47 35708 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/redhat.vscode-yaml-1.12.2/dist/languageserver.js --node-ipc --clientProcessId=35425) 0 47 35783 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/googlecloudtools.cloudcode-1.21.5/dist/server/server.js --node-ipc --clientProcessId=35425) 0 47 35949 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=35425) 0 0 36026 java -Dfile.encoding=UTF-8 -classpath /var/home/joost/.vscode/extensions/vscjava.vscode-gradle-3.12.7/lib/gradle-server.jar com.github.badsyntax.gradle.GradleServer 46685 0 283 36167 /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/jre/17.0.6-linux-x86_64.tar/bin/java -jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/server/sonarlint-ls.jar -stdio -analyzers /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonargo.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjava.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjs.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarphp.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarpython.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarhtml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarxml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarcfamily.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonartext.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonariac.jar 0 299 35742 window [2] (services.tf - terraform-gcloud - Visual Studio Code) 0 79 221656 fileWatcher [2] 0 425 221657 extensionHost [2] 0 47 221689 /var/home/joost/.vscode/extensions/hashicorp.terraform-2.26.0-linux-x64/bin/terraform-ls serve 0 79 221899 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/redhat.vscode-yaml-1.12.2/dist/languageserver.js --node-ipc --clientProcessId=221657) 0 236 221911 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/googlecloudtools.cloudcode-1.21.5/dist/server/server.js --node-ipc --clientProcessId=221657) 0 346 222075 /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/jre/17.0.6-linux-x86_64.tar/bin/java -jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/server/sonarlint-ls.jar -stdio -analyzers /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonargo.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjava.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjs.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarphp.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarpython.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarhtml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarxml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarcfamily.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonartext.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonariac.jar 0 63 222114 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=221657) 0 252 230679 window [3] (Welcome - Visual Studio Code) 0 79 230703 fileWatcher [3] 0 409 230717 extensionHost [3] 0 79 230748 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/redhat.vscode-yaml-1.12.2/dist/languageserver.js --node-ipc --clientProcessId=230717) 0 378 230758 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/googlecloudtools.cloudcode-1.21.5/dist/server/server.js --node-ipc --clientProcessId=230717) 0 63 230802 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=230717) 0 110 230898 /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/jre/17.0.6-linux-x86_64.tar/bin/java -jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/server/sonarlint-ls.jar -stdio -analyzers /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonargo.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjava.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarjs.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarphp.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarpython.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarhtml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarxml.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonarcfamily.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonartext.jar /var/home/joost/.vscode/extensions/sonarsource.sonarlint-vscode-3.17.0-linux-x64/analyzers/sonariac.jar 0 63 230958 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /var/home/joost/.vscode/extensions/dbaeumer.vscode-eslint-2.4.0/server/out/eslintServer.js --node-ipc --clientProcessId=230717) 0 63 230990 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /usr/share/code/resources/app/extensions/markdown-language-features/server/dist/node/workerMain --node-ipc --clientProcessId=230717) 12 456 231002 /var/home/joost/.cache/cloud-code/installer/google-cloud-sdk/platform/bundledpythonunix/bin/python3 /var/home/joost/.cache/cloud-code/installer/google-cloud-sdk/lib/gcloud.py meta list-commands ```Workspace Info
``` | Window (services.tf - terraform-gcloud - Visual Studio Code) | Window (WebRouter.java - notes - Visual Studio Code) | Folder (terraform-gcloud): 76 files | File types: tf(23) 0_x5(5) tfstate(3) hcl(3) json(2) gitignore(1) | yml(1) | Conf files: | Folder (notes): 110 files | File types: bin(8) properties(7) lock(5) xml(5) class(5) java(5) jar(3) | gitignore(2) yml(2) MF(2) | Conf files: settings.json(1); ```Extensions (64)
Extension|Author (truncated)|Version ---|---|--- atlascode|atl|3.0.3 tinkerwell|bey|2.0.0 vscode-intelephense-client|bme|1.9.5 vscode-eslint|dba|2.4.0 dotenv-vscode|dot|0.23.0 gitlens|eam|13.5.0 phpunit|ema|4.1.1 prettier-vscode|esb|9.12.0 codespaces|Git|1.14.7 copilot|Git|1.86.82 vscode-pull-request-github|Git|0.62.0 go|gol|0.38.0 cloudcode|goo|1.21.5 terraform|has|2.26.0 better-cpp-syntax|jef|1.17.2 rainbow-csv|mec|3.7.0 dotenv|mik|1.0.1 vscode-docker|ms-|1.25.0 csharp|ms-|1.25.7 vscode-dotnet-runtime|ms-|1.6.0 isort|ms-|2022.8.0 python|ms-|2023.6.1 vscode-pylance|ms-|2023.5.10 jupyter|ms-|2023.3.1201040234 jupyter-keymap|ms-|1.1.0 jupyter-renderers|ms-|1.0.15 vscode-jupyter-cell-tags|ms-|0.1.8 vscode-jupyter-powertoys|ms-|0.0.6 vscode-jupyter-slideshow|ms-|0.1.5 remote-containers|ms-|0.292.0 remote-ssh|ms-|0.100.0 remote-ssh-edit|ms-|0.84.0 vscode-remote-extensionpack|ms-|0.24.0 azure-account|ms-|0.11.4 cmake-tools|ms-|1.14.31 cpptools|ms-|1.15.4 cpptools-extension-pack|ms-|1.3.0 hexeditor|ms-|1.9.11 remote-explorer|ms-|0.4.0 remote-server|ms-|1.1.0 vscode-serial-monitor|ms-|0.9.0 vsliveshare|ms-|1.0.5864 vsliveshare-pack|ms-|0.4.0 laravel-blade|one|1.34.0 laravel5-snippets|one|1.17.0 material-icon-theme|PKi|4.27.0 java|red|1.18.0 vscode-yaml|red|1.12.2 sonarlint-vscode|Son|3.17.0 vscode-pets|ton|1.22.0 intellicode-api-usage-examples|Vis|0.2.7 vscodeintellicode|Vis|1.2.30 vscode-arduino|vsc|0.6.0 vscode-gradle|vsc|3.12.7 vscode-java-debug|vsc|0.50.0 vscode-java-dependency|vsc|0.22.0 vscode-java-pack|vsc|0.25.11 vscode-java-test|vsc|0.38.2 vscode-maven|vsc|0.41.0 JavaScriptSnippets|xab|1.8.0 ReactSnippets|xab|2.4.0 php-debug|xde|1.32.1 php-pack|xde|1.0.3 php-intellisense|zob|1.1.2 (3 theme extensions excluded)