Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cpu usage high #4204

Closed
alphatok opened this issue Apr 6, 2023 · 8 comments
Closed

cpu usage high #4204

alphatok opened this issue Apr 6, 2023 · 8 comments
Assignees

Comments

@alphatok
Copy link

alphatok commented Apr 6, 2023

We have written the needed data into your clipboard b
Type: Performance Issue

python project, all editors closed.

VS Code version: Code 1.77.0 (7f329fe6c66b0f86ae1574c2911b681ad5a45d63, 2023-03-29T10:02:16.981Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

System Info
Item Value
CPUs 11th Gen Intel(R) Core(TM) i7-1165G7 @ 2.80GHz (8 x 1690)
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: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: disabled_off
Load (avg) undefined
Memory (System) 15.73GB (5.94GB free)
Process Argv E:\code\XXX\python-notes --crash-reporter-id 7a8da128-85df-462d-a4d7-9c15013868f8
Screen Reader no
VM 67%
Process Info
CPU %	Mem MB	   PID	Process
    0	    75	 17036	code main
    0	   236	  1140	   gpu-process
    0	    19	  2156	fileWatcher [1]
    0	     6	 11276	   crashpad-handler
    0	   151	 13340	window [1] (python-notes - Visual Studio Code)
    0	    13	 18692	   utility-network-service
    0	    42	 18928	shared-process
    0	    13	 20244	     ptyHost
    0	   135	 18976	extensionHost [1]
    0	    80	  1352	     electron-nodejs ("C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\Administrator\.vscode\extensions\ms-python.vscode-pylance-2023.3.40\dist\server.bundle.js --cancellationReceive=file:5b4b4587096e50da7deb54621c2a5c4d3f2b9cf9c5 --node-ipc --clientProcessId=18976)
    7	    16	  3968	       C:\ProgramData\Anaconda3\python.exe c:\Users\Administrator\.vscode\extensions\ms-python.vscode-pylance-2023.3.40\dist\bundled\files\get_pytest_options.py
    0	    10	 18476	         console-window-host (Windows internal process)
    0	    29	  5540	     electron-nodejs ("C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\Administrator\.vscode\extensions\vue.volar-1.2.0-win32-x64\server.js --node-ipc --clientProcessId=18976)
    0	    61	 17776	     electron-nodejs ("C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\Administrator\.vscode\extensions\visualstudioexptteam.intellicode-api-usage-examples-0.2.7\dist\server\server.js --node-ipc --clientProcessId=18976)
    0	    19	 18200	     electron-nodejs ("C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node "c:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\resources\app\extensions\markdown-language-features\server\dist\node\workerMain" --node-ipc --clientProcessId=18976)
    0	    29	 18752	     electron-nodejs ("C:\Users\Administrator\AppData\Local\Programs\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\Administrator\.vscode\extensions\vue.volar-1.2.0-win32-x64\server.js --node-ipc --clientProcessId=18976)
    0	    86	 21108	window [2] (Issue Reporter)
Workspace Info
|  Window (python-notes - Visual Studio Code)
|    Folder (python-notes): 25 files
|      File types: xml(6) py(6) pyc(3) gitignore(2) md(2) iml(1) java(1)
|                  txt(1)
|      Conf files:;
Extensions (34)
Extension Author (truncated) Version
sublime-monokai Ary 0.2.9
vscode-django bat 1.10.0
macos-modern-theme dav 2.3.18
python-environment-manager don 1.0.4
python-extension-pack don 1.7.0
copilot Git 1.79.10634
copilot-labs Git 0.12.791
gc-excelviewer Gra 4.2.57
intellij-idea-keybindings k-- 1.5.9
vsc-python-indent Kev 1.18.0
rainbow-csv mec 3.6.0
vscode-docker ms- 1.24.0
python ms- 2023.6.0
vscode-pylance ms- 2023.3.40
jupyter ms- 2023.3.1000892223
jupyter-keymap ms- 1.1.0
jupyter-renderers ms- 1.0.15
vscode-jupyter-cell-tags ms- 0.1.8
vscode-jupyter-slideshow ms- 0.1.5
remote-wsl ms- 0.77.0
autodocstring njp 0.6.1
fabric8-analytics red 0.3.6
java red 1.16.0
intellicode-api-usage-examples Vis 0.2.7
vscodeintellicode Vis 1.2.30
vscode-java-debug vsc 0.49.1
vscode-java-dependency vsc 0.21.2
vscode-java-pack vsc 0.25.10
vscode-java-test vsc 0.38.2
vscode-maven vsc 0.41.0
volar Vue 1.2.0
vscode-typescript-vue-plugin Vue 1.2.0
jinja who 0.0.8
markdown-all-in-one yzh 3.5.1
A/B Experiments
vsliv368:30146709
vsreu685:30147344
python383:30185418
vspor879:30202332
vspor708:30202333
vspor363:30204092
vslsvsres303:30308271
vserr242:30382549
pythontb:30283811
vsjup518:30340749
pythonptprofiler:30281270
vshan820:30294714
vstes263:30335439
vscoreces:30445986
pythondataviewer:30285071
vscod805cf:30301675
binariesv615:30325510
bridge0708:30335490
bridge0723:30353136
cmake_vspar411:30581797
vsaa593:30376534
pythonvs932:30410667
cppdebug:30492333
vscaat:30438848
vsclangdf:30486550
c4g48928:30535728
dsvsc012:30540252
pynewext54:30695312
azure-dev_surveyone:30548225
vsccc:30610678
nodejswelcome1cf:30587006
3biah626:30602489
pyind779:30671433
f6dab269:30613381
pythonsymbol12:30671437
a9j8j154:30646983
vsccsb:30705552
functionswalk:30687959
pythonms35:30701012
pythonclientmvcf:30705674

ecause it was too large to send. Please paste.
@rchiodo
Copy link
Contributor

rchiodo commented Apr 6, 2023

Thanks for the issue but it's not actionable without the performance information. Do you still have it?

@rchiodo rchiodo closed this as completed Apr 6, 2023
@alphatok
Copy link
Author

alphatok commented Apr 7, 2023

Thanks for the issue but it's not actionable without the performance information. Do you still have it?

once any python project opene, CPU usage %7+ (section: Process Info )
image

@rchiodo
Copy link
Contributor

rchiodo commented Apr 7, 2023

That would be expected. The python extension is looking for interpreters on startup.

That also would not have generated a 'slow extension' notification for the Python extension or the Pylance extension. Usually there's a notification that says that and it copies the performance data to the clipboard.

@lackwb
Copy link

lackwb commented Apr 10, 2023

I am also experiencing the same issue. Even after closing all the files, Pylance is still showing a "consistently" high CPU usage. Today, I updated everything(VSCode v1.77.1, Pylance v2023.4.10) and the issue persists both before and after the update.
pylance

@rchiodo
Copy link
Contributor

rchiodo commented Apr 10, 2023

@lackwb can you get the command line arguments for that process? It should be really quick, but perhaps it's looking for the config in the wrong spot.

@lackwb
Copy link

lackwb commented Apr 11, 2023

Do you mean this?

com1

electron-nodejs ("C:\Program Files\Microsoft VS Code\Code.exe" --ms-enable-electron-run-as-node c:\Users\userid.vscode\extensions\ms-python.vscode-pylance-2023.4.10\dist\server.bundle.js --cancellationReceive=file:f28abe1a95a8006424703a29cbbadf20d9f7d1cfd9 --node-ipc --clientProcessId=8172)

C:\ProgramData\anaconda3\python.exe c:\Users\userid.vscode\extensions\ms-python.vscode-pylance-2023.4.10\dist\bundled\files\get_pytest_options.py

com2

@rchiodo
Copy link
Contributor

rchiodo commented Apr 11, 2023

Yeah that was it. Your problem is a dupe of #4218. It would be better if you followed that issue.

@lackwb
Copy link

lackwb commented Apr 11, 2023

Yeah that was it. Your problem is a dupe of #4218. It would be better if you followed that issue.

I will. Thank you.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants