microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
160.81k stars 28.2k forks source link

high usage of cpu #214673

Open kramer04 opened 1 month ago

kramer04 commented 1 month ago

Type: Bug

open VSCODE, check with top on ubuntu 22.04 usage of more than 200 %

Version: 1.91.0-insider Commit: 6facfe23b300eb448c35d07291cad7ad98625302 Date: 2024-06-07T08:39:45.151Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.5.0-35-generic snap

VS Code version: Code - Insiders 1.91.0-insider (6facfe23b300eb448c35d07291cad7ad98625302, 2024-06-07T08:39:45.151Z) OS version: Linux x64 6.5.0-35-generic snap Modes:

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i7-2600K CPU @ 3.40GHz (8 x 4429)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: disabled_off
direct_rendering_display_compositor: disabled_off_ok
gpu_compositing: enabled
multiple_raster_threads: enabled_on
opengl: enabled_on
rasterization: enabled
raw_draw: disabled_off_ok
skia_graphite: disabled_off
video_decode: enabled
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|2, 2, 1| |Memory (System)|15.55GB (12.83GB free)| |Process Argv|--force-user-env --no-sandbox --use-gl=angle --use-angle=swiftshader --crash-reporter-id 09ddb35a-b183-4fc6-8114-ea168c147ef0| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|x11|
Extensions (7) Extension|Author (truncated)|Version ---|---|--- vsc-python-indent|Kev|1.18.0 black-formatter|ms-|2024.2.0 pylint|ms-|2023.10.1 python|ms-|2024.8.0 vscode-pylance|ms-|2024.6.1 cpptools|ms-|1.20.5 cpptools-extension-pack|ms-|1.3.0 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805:30301674 vsaa593cf:30376535 py29gd2263:31024238 c4g48928:30535728 vscrpc:30624061 962ge761:30841072 pythongtdpath:30726887 welcomedialog:30812478 pythonidxpt:30768918 pythonnoceb:30776497 asynctok:30898717 dsvsc013:30777762 dsvsc014:30777825 dsvsc015:30821418 pythontestfixt:30866404 pythonregdiag2:30926734 pythonmypyd1:30859725 pythoncet0:30859736 2e7ec940:31000449 pythontbext0:30879054 accentitlementst:30870582 dsvsc016:30879898 dsvsc017:30880771 dsvsc018:30880772 cppperfnew:30980852 pythonait:30973460 jchc7451:31067543 showvideot:31016890 chatpanelt:31014475 9c06g630:31013171 a69g1124:31018687 dvdeprecation:31040973 pythonprt:31036556 dwnewjupytercf:31046870 newcmakeconfigv2:31067619 nb_pkg_only:31057982 26j00206:31048877 refactort:31067743 ```
gjsjohnmurray commented 1 month ago

/needsMoreInfo

/confirmPlease

VSCodeTriageBot commented 1 month ago

Please diagnose the root cause of the issue by running the command F1 > Help: Troubleshoot Issue and following the instructions. Once you have done that, please update the issue with the results.

Happy Coding!

VSCodeTriageBot commented 1 month ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

VSCodeTriageBot commented 1 month ago

Thanks for creating this issue! We figured it's missing some basic information or in some other way doesn't follow our issue reporting guidelines. Please take the time to review these and update the issue.

Happy Coding!

kramer04 commented 1 month ago

here the issue : F1 > Help: Troubleshoot Issue

Issue troubleshooting has identified that the issue is with Visual Studio Code - Insiders.

Version: 1.91.0-insider Commit: fec18ef7d6793521c4683e67e569579ea970cc6d Date: 2024-06-10T05:50:35.671Z Electron: 29.4.0 ElectronBuildId: 9593362 Chromium: 122.0.6261.156 Node.js: 20.9.0 V8: 12.2.281.27-electron.0 OS: Linux x64 6.5.0-35-generic snap

gjsjohnmurray commented 1 month ago

/needsPerfInfo

VSCodeTriageBot commented 1 month ago

Thanks for creating this issue regarding performance! Please follow this guide to help us diagnose performance issues: https://github.com/microsoft/vscode/wiki/Performance-Issues

Happy Coding!

kramer04 commented 1 month ago

joined perf info from process explorer Process Name CPU (%) Memory (MB) PID code-insiders main 1 159 229615 zygote 0 32 229617 zygote 0 32 229618 window [1] (● fo1.cpp - fibre_optique - Visual Studio Code - Insiders) 0 366 229698 window [3] (Process Explorer) 0 111 542272 gpu-process 54 207 229644 utility-network-service 0 64 229653 extensionHost [1] 0 175 229729 /snap/code-insiders/1656/usr/share/code-insiders/code-insiders /snap/code-insiders/1656/usr/share/code-insiders/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=229729 0 111 229776 /home/blabla/.vscode-insiders/extensions/ms-vscode.cpptools-1.20.5-linux-x64/bin/cpptools 0 64 229809 shared-process 0 96 229739 fileWatcher [1] 0 80 229740 ptyHost 0 80 532070 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 563572 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 563573

Capture d’écran du 2024-06-10 17-39-11

mliudev commented 1 month ago

Getting the same issue until the docker container crashes when running devcontainer open:

Screenshot 2024-06-12 at 15 26 00

These vscode-server/bin processes seem to be infinitely spinning up until OOM.