microsoft / vscode

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

too slow processing #214531

Closed RajamaniManoharan closed 4 months ago

RajamaniManoharan commented 4 months ago

Type: Performance Issue

I am facing continuous slowness in performance, suggestions, error indication. I don't even have huge extensions. I tried reinstalling the application but still facing this issue

VS Code version: Code 1.89.1 (dc96b837cf6bb4af9cd736aa3af08cf8279f7685, 2024-05-07T05:16:23.416Z) OS version: Linux x64 6.5.0-35-generic Modes:

System Info |Item|Value| |---|---| |CPUs|13th Gen Intel(R) Core(TM) i7-1360P (16 x 1160)| |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)|1, 1, 0| |Memory (System)|15.30GB (11.83GB free)| |Process Argv|--crash-reporter-id 797a44d0-52d6-4d3c-8c00-dddb1f52bfef| |Screen Reader|no| |VM|0%| |DESKTOP_SESSION|ubuntu| |XDG_CURRENT_DESKTOP|Unity| |XDG_SESSION_DESKTOP|ubuntu| |XDG_SESSION_TYPE|wayland|
Process Info ``` CPU % Mem MB PID Process 0 157 3080 code main 0 31 3085 zygote 0 125 3118 gpu-process 0 31 3086 zygote 0 0 3088 zygote 0 282 3176 window [1] (create-inquiry-handler.ts - compresecond-platform - Visual Studio Code) 0 94 3571 window [2] (Issue Reporter) 0 63 3126 utility-network-service 0 78 3208 ptyHost 0 0 3276 /usr/bin/zsh -i 0 251 3223 extensionHost [1] 0 110 3304 electron-nodejs (tsserver.js ) 2 893 3305 electron-nodejs (tsserver.js ) 0 63 3329 electron-nodejs (typingsInstaller.js typesMap.js ) 0 63 3365 electron-nodejs (eslintServer.js ) 0 63 3504 /usr/share/code/code /usr/share/code/resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=3223 0 94 3234 shared-process 0 0 3583 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 3584 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 78 3235 fileWatcher [1] ```
Workspace Info ``` | Window (create-inquiry-handler.ts - compresecond-platform - Visual Studio Code) | Folder (compresecond-platform): 1996 files | File types: ts(506) tsx(316) js(136) feature(103) astro(86) json(41) | svg(27) yml(18) gitignore(14) yaml(11) | Conf files: github-actions(16) package.json(13) tsconfig.json(13) | dockerfile(7) settings.json(2) launch.json(1); ```
Extensions (6) Extension|Author (truncated)|Version ---|---|--- vscode-eslint|dba|2.4.4 gitlens|eam|15.0.4 prettier-vscode|esb|10.4.0 copilot|Git|1.200.0 copilot-chat|Git|0.15.2 reload|nat|0.0.7
A/B Experiments ``` vsliv368cf:30146710 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscoreces:30445986 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:31024239 c4g48928:30535728 azure-dev_surveyone:30548225 a9j8j154:30646983 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pythonmypyd1:30879173 pythoncet0:30885854 h48ei257:31000450 pythontbext0:30879054 accentitlementsc:30995553 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 cppperfnew:31000557 dsvsc020:30976470 pythonait:31006305 jchc7451:31067544 chatpanelt:31048053 dsvsc021:30996838 g316j359:31013175 pythoncenvpt:31062603 a69g1124:31058053 dvdeprecation:31068756 pythonprt:31056678 dwnewjupytercf:31046870 26j00206:31048877 ```
vscodenpa commented 4 months 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.90.0. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

connor4312 commented 4 months ago

Please share more info using the guide in https://github.com/microsoft/vscode/wiki/Performance-Issues

mirc1one commented 4 months ago

I am also experiencing this issue, not a big list of extensions and it seems that the answers are vague. Disabling the extensions improve the app a bit, but definitely a vscode issue. I have reverted to the macOS May 2024 version and everything works fine (with autoupdate disabled). Most likely a recent update.

connor4312 commented 4 months ago

Please share more info using the guide in https://github.com/microsoft/vscode/wiki/Performance-Issues

RajamaniManoharan commented 4 months ago

code --status Version: Code 1.90.0 (89de5a8d4d6205e5b11647eb6a74844ca23d2573, 2024-06-04T19:43:07.605Z) OS Version: Linux x64 6.5.0-35-generic CPUs: 13th Gen Intel(R) Core(TM) i7-1360P (16 x 1359) Memory (System): 15.30GB (10.16GB free) Load (avg): 1, 1, 1 VM: 0% Screen Reader: no Process Argv: --new-window --crash-reporter-id 797a44d0-52d6-4d3c-8c00-dddb1f52bfef 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

CPU % Mem MB PID Process 0 157 3685 code main 0 31 3689 zygote 0 125 3722 gpu-process 0 31 3690 zygote 0 0 3692 zygote 0 313 3778 window [1] (notify-patient-inquiry-handler.ts - inquiry - Visual Studio Code) 0 63 3727 utility-network-service 0 110 3806 shared-process 0 360 3916 extensionHost [1] 0 110 3970 electron-nodejs (tsserver.js ) 0 752 3971 electron-nodejs (tsserver.js ) 0 63 3992 electron-nodejs (typingsInstaller.js typesMap.js ) 0 63 4055 electron-nodejs (eslintServer.js ) 0 94 3926 fileWatcher [1] 0 78 3954 ptyHost 0 0 4012 /usr/bin/zsh -i 0 0 5166 bash

Workspace Stats: | Window (n*****dler.ts - inquiry - Visual Studio Code) | Folder (inquiry): 337 files | File types: ts(132) js(84) json(2) env(1) gitignore(1) npmrc(1) | graphql(1) yaml(1) | Conf files: dockerfile(1) package.json(1) tsconfig.json(1)

connor4312 commented 4 months ago

@RajamaniManoharan it looks like eveything is idle when you took that status. Please try to capture a moment when you're getting slowness and continue the troubleshooting in the wiki. Thanks

vscodenpa commented 4 months ago

This issue has been closed automatically because it needs more information and has not had recent activity. See also our issue reporting guidelines.

Happy Coding!