microsoft / vscode

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

Performance Issue #177060

Closed HassanSardar1 closed 1 year ago

HassanSardar1 commented 1 year ago

Type: Performance Issue

It is utilizing my Cpu 100% core i5-5300u

VS Code version: Code 1.76.1 (5e805b79fcb6ba4c2d23712967df89a089da575b, 2023-03-08T16:31:31.010Z) OS version: Linux x64 5.19.0-35-generic Modes: Sandboxed: Yes

System Info |Item|Value| |---|---| |CPUs|Intel(R) Core(TM) i5-5300U CPU @ 2.30GHz (4 x 2693)| |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_renderer: enabled_on
video_decode: disabled_software
video_encode: disabled_software
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off| |Load (avg)|7, 3, 1| |Memory (System)|11.57GB (7.92GB free)| |Process Argv|--unity-launch --crash-reporter-id 4de7cd77-5d17-4791-bc15-608e14a1d642| |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 1 142 4448 code main 0 36 4453 zygote 2 118 4485 gpu-process 0 36 4454 zygote 0 0 4456 zygote 6 284 4519 window (promoblock.php - ps1751 - Visual Studio Code) 1 83 4724 issue-reporter 0 47 4504 utility-network-service 4 154 4551 utility-process 0 296 4639 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /home/unitedsol/.vscode/extensions/bmewburn.vscode-intelephense-client-1.9.5/node_modules/intelephense/lib/intelephense.js --node-ipc --clientProcessId=4551) 25 237 4640 PHP Language Server 0 71 4647 electron-nodejs (/usr/share/code/code --ms-enable-electron-run-as-node /home/unitedsol/.vscode/extensions/mtxr.sqltools-0.27.1/dist/languageserver.js --node-ipc --clientProcessId=4551) 0 154 4561 shared-process 0 71 4579 ptyHost 0 71 4614 fileWatcher 0 0 4738 /bin/sh -c /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 0 4739 /usr/bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= ```
Workspace Info ``` | Window (promoblock.php - ps1751 - Visual Studio Code) | Folder (ps1751): more than 20069 files | File types: php(9395) xml(1247) png(1233) jpg(1205) js(732) tpl(501) | yml(374) xlf(362) gif(229) twig(219) | Conf files: makefile(17) dockerfile(5) webpack.config.js(4) | package.json(2); ```
Extensions (18) Extension|Author (truncated)|Version ---|---|--- smarty-template-support|asw|2.1.0 vscode-intelephense-client|bme|1.9.5 gitlens|eam|13.3.2 vscode-html-css|ecm|1.13.1 php-cs-fixer|jun|0.3.9 cmake-tools|ms-|1.13.45 cpptools|ms-|1.14.4 cpptools-extension-pack|ms-|1.3.0 sqltools|mtx|0.27.1 php-docblocker|nei|2.7.0 vscode-php-codesniffer|obl|1.7.0 pdf|tom|1.2.2 cmake|twx|0.0.17 volar|Vue|1.2.0 twig|wha|1.0.2 php-debug|xde|1.32.0 php-pack|xde|1.0.3 php-intellisense|zob|1.1.2 (1 theme extensions excluded)
A/B Experiments ``` vsliv368:30146709 vsreu685:30147344 python383:30185418 vspor879:30202332 vspor708:30202333 vspor363:30204092 vslsvsres303:30308271 pythonvspyl392:30443607 vserr242cf:30382550 pythontb:30283811 vsjup518:30340749 pythonptprofiler:30281270 vsdfh931cf:30280410 vshan820:30294714 vstes263:30335439 pythondataviewer:30285071 vscod805:30301674 binariesv615:30325510 bridge0708:30335490 bridge0723:30353136 cmake_vspar411:30581797 vsaa593:30376534 pythonvs932:30410667 cppdebug:30492333 vsclangdf:30486550 c4g48928:30535728 dsvsc012cf:30540253 pynewext54:30681850 azure-dev_surveyone:30548225 pyindex848:30662994 nodejswelcome1cf:30587006 282f8724:30602487 pyind779:30671433 f6dab269:30613381 pythonsymbol12:30671437 showlangstatbar:30672706 vsctsb:30677850 vscodedisable:30660115 funwalk2cf:30682975 ```
deepak1556 commented 1 year ago

From the attached process tree, it shows that PHP language server is the one at increased CPU usage. Does the issue happen when you work with non php files ? Can you also test if the issue is present with our latest insiders https://code.visualstudio.com/insiders ?

VSCodeTriageBot commented 1 year 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!