Now I start next.js project my CPU use 30-40% only if I typing in Visual Studio Code
I think it is not normal.
(I’ve been using it for a while but not notice this happening
but I do only pure Html/CSS/Javascript projects.)
I use Computer i7- 8gen, 32GB DDR4, SSD, Win 10
Not run dev environment
I not use extension or only prettier but both have same result.
I reinstall my Vs Code and also clear cahce from AppData
I try 1-55-2 and 1-53.2 version also and of course 1.59.0
It is normal? What’s happenig? How can I optimize VS code consumption?
What are your suggestions?
I don’t have a specific answer for you but have you tried googling for answers? I did and a lot of them seem to recommend you start disabling extensions until you find the one that is causing the high cpu usage. I’m not saying that is your problem, but it’s probably worth exploring.
2 Likes
I don’t think it’s normal.
I personally watched two videos titled windows 10 high disk usage and windows 10 high memory usage and did what they said like disabling auto indexing/search and all and now even after installing a dozen extensions also it runs very smoothly.
1 Like
I exploring very lot of. I described that I reinstalled severel times vs code as final resolution. and clear Vs code cahce also. so no extension and then same result…
Thank you. I yet very lot of video such video saw and not run file indexing on my windows 10. My Disk and my memory is excelent state while i typing.
Only CPU usage high and only if I tying on Vs code.
In other program typing isn’t CPU high usage
I delete Vs code and install updated version 1.59
I clear cache from \AppData\Roaming\Code
so no extension.
any extension.
Do you have any suggestion? I try everything yet that suppose. Please write again if I misunderstood something.
Thank you very much.
I saw and did step by step
opened 06:20PM - 11 Dec 20 UTC
closed 09:06PM - 11 Dec 20 UTC
Issue Type: <b>Performance Issue</b>
I checked for extension updates each day… and since yesterday Visual Studio Code had been hogging my CPU (~300%). I opened the Process Explorer tool inside Visual Studio Code and it showed that extensionHost had very high CPU usage. I had updated to the November release of Visual Studio Code and tried disabling a few of the recently updated extensions but that did not help.
Thanks.
VS Code version: Code 1.52.0 (940b5f4bb5fa47866a54529ed759d95d09ee80be, 2020-12-10T22:46:53.673Z)
OS version: Darwin x64 20.1.0
<details>
<summary>System Info</summary>
|Item|Value|
|---|---|
|CPUs|Intel(R) Core(TM) i7-6920HQ CPU @ 2.90GHz (8 x 2900)|
|GPU Status|2d_canvas: enabled<br>flash_3d: enabled<br>flash_stage3d: enabled<br>flash_stage3d_baseline: enabled<br>gpu_compositing: enabled<br>metal: disabled_off<br>multiple_raster_threads: enabled_on<br>oop_rasterization: enabled<br>opengl: enabled_on<br>protected_video_decode: unavailable_off<br>rasterization: enabled<br>skia_renderer: disabled_off_ok<br>video_decode: enabled<br>webgl: enabled<br>webgl2: enabled|
|Load (avg)|12, 13, 14|
|Memory (System)|16.00GB (0.10GB free)|
|Process Argv|--crash-reporter-id 0857be46-1a0e-45a9-a9d1-9e5f119a5a62|
|Screen Reader|no|
|VM|0%|
</details><details>
<summary>Process Info</summary>
```
CPU % Mem MB PID Process
9 131 16496 code main
1 49 16499 gpu-process
0 33 16501 utility
0 360 16502 window (Untitled-34 — Untitled (Workspace))
291 1507 16511 extensionHost
0 180 16534 electron_node server.js
0 33 16536 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Renderer).app/Contents/MacOS/Code Helper (Renderer) /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=16511
0 33 16538 electron_node server.js
0 66 16550 electron_node languageserver.js
0 147 16610 electron_node server.js
0 33 16626 electron_node ssmServer.js
0 66 16698 electron_node server.js
0 33 17349 electron_node aslServer.js
0 131 17461 electron_node bundle.js
0 66 16512 watcherService
0 33 16522 searchService
90 180 16515 shared-process
0 0 18415 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command=
3 66 18258 window (Issue Reporter)
```
</details>
<details>
<summary>Workspace Info</summary>
```
| Window (Untitled-34 — Untitled (Workspace))
| Folder (GIT_stash): more than 20689 files
| File types: txt(7364) py(1926) h(1633) sh(1331) png(850) cpp(731)
| plist(381) bin(359) traj(276) groovy(214)
| Conf files: cmake(88) makefile(4) sln(4) launch.json(1)
| settings.json(1)
| Launch Configs: python(11);
```
</details>
<details><summary>Extensions (165)</summary>
Extension|Author (truncated)|Version
---|---|---
calculate|aca|2.1.0
string-converter|ada|0.1.2
codesnap|adp|1.2.0
Bookmarks|ale|12.0.0
project-manager|ale|12.0.1
separators|ale|2.0.0
aws-toolkit-vscode|ama|1.17.0
navigateto|app|1.0.1
ascii-tree-generator|apr|1.2.4
awarest-align|awa|1.1.0
vscode-back-forward-buttons|bai|1.0.1
vscode-django|bat|1.0.0
calva|bet|2.0.134
color-info|bie|0.5.1
markdown-preview-github-styles|bie|0.1.6
clj-kondo|bor|2020.11.700
insert-unicode|bru|0.10.0
path-intellisense|chr|2.3.0
regex|chr|0.2.0
vscode-postgres|cko|1.1.14
vscode-navigate-edit-history|cod|1.3.0
bracket-pair-colorizer-2|Coe|0.2.0
decimal-incrementor|coo|0.2.0
file-tree-to-text-generator|d-k|1.4.0
dakara-foldplus|dak|1.5.1
transformer|dak|1.11.0
jsonpath-extract|dav|1.2.3
vscode-quick-select|dba|0.2.9
vscode-hasher|dee|1.0.1
python-extension-pack|don|1.6.0
xml|Dot|2.5.1
gitlens|eam|11.0.6
filter-lines|ear|0.2.0
vscode-html-css|ecm|1.1.2
vscode-powertools|ego|0.63.0
LogFileHighlighter|emi|2.10.0
vsc-material-theme|Equ|33.0.0
vsc-material-theme-icons|equ|1.2.0
auto-close-tag|for|0.5.9
code-runner|for|0.11.1
seito-openfile|Fr4|1.8.7
go|gol|0.19.1
cloudcode|goo|1.7.1
vscode-graphql|Gra|0.3.13
vscode-json-editor|Gre|1.0.200602
better-cursors|Gru|0.0.4
todo-tree|Gru|0.0.192
ubertab|Gru|0.0.7
timing|Haa|2.5.1
vscode-drawio|hed|1.2.0
yaml-plus-json|hil|1.6.0
beautify|Hoo|1.5.0
rest-client|hum|0.24.4
output-colorizer|IBM|0.1.2
applescript|idl|0.19.0
align-by-regex|jan|1.0.4
jenkins-pipeline-linter-connector|jan|1.2.0
vscode-jmespath|jos|0.0.6
vscode-insertdatestring|jsy|2.3.0
wordcounter|kir|2.3.0
kite|kit|0.135.0
wrapSelection|kon|0.10.0
cql|Law|0.8.7
bash-ide-vscode|mad|1.11.0
string-manipulation|mar|0.4.3
metago|met|4.2.0
MetaJump|met|1.1.1
MetaWord|met|1.2.1
vscode-language-babel|mgm|0.0.30
git-graph|mhu|1.28.0
vscode-edits-history|mis|0.1.6
vscode-clang|mit|0.2.3
azure-pipelines|ms-|1.177.0
vscode-apimanagement|ms-|0.1.8
vscode-azureappservice|ms-|0.20.0
vscode-azurefunctions|ms-|1.0.1
vscode-azureresourcegroups|ms-|0.2.0
vscode-azurestorage|ms-|0.11.0
vscode-azurevirtualmachines|ms-|0.2.0
vscode-cosmosdb|ms-|0.15.1
vscode-docker|ms-|1.8.1
csharp|ms-|1.23.7
vscode-dotnet-runtime|ms-|1.0.0
vscode-kubernetes-tools|ms-|1.2.1
mssql|ms-|1.10.0
anaconda-extension-pack|ms-|1.0.1
python|ms-|2020.11.371526539
vscode-pylance|ms-|2020.12.1
jupyter|ms-|2020.12.414227025
remote-containers|ms-|0.154.0
remote-ssh|ms-|0.62.0
remote-ssh-edit|ms-|0.62.0
remote-wsl|ms-|0.52.0
vscode-remote-extensionpack|ms-|0.20.0
azure-account|ms-|0.9.4
azurecli|ms-|0.5.0
cmake-tools|ms-|1.5.3
cpptools|ms-|1.1.3
hexeditor|ms-|1.3.0
js-debug-nightly|ms-|2020.12.917
powershell|ms-|2020.6.0
sublime-keybindings|ms-|4.0.7
typescript-javascript-grammar|ms-|0.0.55
vs-keybindings|ms-|0.2.0
vscode-node-azure-pack|ms-|0.0.11
vsliveshare|ms-|1.0.3303
azurerm-vscode-tools|msa|0.14.0
cordova-tools|msj|2.1.2
debugger-for-chrome|msj|4.12.11
vscode-react-native|msj|1.1.1
sqltools|mtx|0.23.0
sqltools-driver-mssql|mtx|0.2.0
sqltools-driver-mysql|mtx|0.2.0
sqltools-driver-pg|mtx|0.2.0
sqltools-driver-sqlite|mtx|0.2.0
embrace|myc|1.0.0
vscode-json-editor|nic|0.2.3
autodocstring|njp|0.5.4
vscode-drawio-plugin-mermaid|nop|0.1.2
favorites|ole|1.4.0
material-icon-theme|PKi|4.4.0
vscode-css-peek|pra|4.0.2
codebucket|pst|0.2.0
bracketeer|pus|1.3.1
quicktype|qui|12.0.46
ruby|reb|0.27.0
java|red|0.72.0
vscode-yaml|red|0.13.0
vscode-statusbar-json-path|ric|1.4.4
Unotes|rya|1.2.1
rylogic-textaligner-vscode|Ryl|1.10.5
edit-with-shell|ryu|1.2.0
partial-diff|ryu|1.4.1
text-marker|ryu|1.11.0
jinjahtml|sam|0.15.0
vscode-fileutils|sle|3.4.2
vscode-hexdump|sle|1.8.1
vscode-multiclip|sle|0.1.5
smart-formatter|Sma|1.1.2
codevalet-vscode|Sop|1.1.2
ascii-plist|spe|1.0.3
regexworkbench|ste|2.0.5
rewrap|stk|1.13.0
code-spell-checker|str|1.10.2
sort-lines|Tyr|1.9.0
vscode-counter|uct|2.2.0
vscodeintellicode|Vis|1.2.10
azure-iot-toolkit|vsc|2.16.4
vscode-java-debug|vsc|0.29.0
vscode-java-dependency|vsc|0.15.0
vscode-java-pack|vsc|0.12.0
vscode-java-test|vsc|0.26.1
vscode-maven|vsc|0.26.0
vscode-icons|vsc|11.0.0
vscode-ansible|vsc|0.5.2
vscode-todo-highlight|way|1.0.4
jinja|who|0.0.8
vscode-ruby|win|0.27.0
any-swap|wol|0.1.3
local-history|xyz|1.8.1
current-file-path|Yos|3.0.0
markdown-all-in-one|yzh|3.4.0
json-helper|zho|1.3.2
material-theme|zhu|3.9.11
html-css-class-completion|Zig|1.19.0
(3 theme extensions excluded)
</details>
suggested this:
This had suppose open new smaller file >> I try not help
The solution was an extension disabled >> I have no extension.
opened 08:50PM - 15 Jun 16 UTC
closed 06:06AM - 22 Jun 16 UTC
needs more info
freeze-slow-crash-leak
- VSCode Version: Currently 1.0, have also been running into this issue on 1.2 a… nd 1.2.1
- OS Version: Windows 10 64 bit
See attachment for CPU profiling while reloading the VSC window.
[cpu_profile.zip](https://github.com/Microsoft/vscode/files/317180/cpu_profile.zip)
Steps to Reproduce:
1. Start VSC
Description:
Painfully slow (About 3-5 minutes) to fully start VSC. VSC will max my CPU usage on my system while starting up, after it starts up, it will dip to about 5% CPU utilization, but will jump back up to max my CPU when I am typing in an empty document.
Have tried running `code -n --disable-extensions --disable-gpu` but I am running into the same issue as well. Also tried clean installs and have reverted back to 1.0 but the issue still persists.
System Specs:
Operating System: Windows 10 Enterprise 64-bit (10.0, Build 10240)
System Manufacturer: Hewlett-Packard
System Model: HP ZBook 15 G2
Processor: Intel(R) Core(TM) i7-4810MQ CPU @ 2.80GHz, ~2.8GHz
Memory: 16384MB RAM
Available OS Memory: 16042MB RAM
suggested this:
Change settings.json
{
"git.enabled" : false,
"update.channel": "none",
"telemetry.enableTelemetry": false,
"telemetry.enableCrashReporter": false,
"files.exclude": {
"**/largeFolder": true
}
Not help
suggested this:
Change settings.json
{
"files.exclude": {
"**/tmp/**": true,
"**/node_modules/**": true,
"**/.git/objects/**": true,
},
"files.watcherExclude": {
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true,
"**/node_modules/**": true,
"**/tmp/**": true,
"**/dist/**": true
},
"search.exclude": {
"**/node_modules/**": true,
"**/dist/**": true,
"**/tmp/**": true,
"**/.git/objects/**": true,
"**/.git/subtree-cache/**": true
},
"extensions.autoCheckUpdates": false,
"extensions.autoUpdate": false,
"search.followSymlinks": false
}
Not help
suggested this:
Disable Microsoft Live Share extension >> I have no extension
Do you have any suggestion? idea?
Thank you again.
nikolicsmilan77:
Not run dev environment
I send message as report issue from Vs code:
send to Github
Github:
Hi, unfortunately this issue has no reproducible steps and there is nothing that we can do.
I suggest that you just open a question on stack overflow and the community there will be able to help.
Stackowerflow:
We don’t allow questions about general computing hardware and software on Stack Overflow.
You can edit the question so it’s on-topic for Stack Overflow or post a new one on Super User.
I will try Superuser but not surprising if send to Github
On my laptop there are two GPUs, an embedded one from Intel and a discrete one from Nvidia. There is a bios option called “Hybrid Graphics” mode that allows the system to dynamically use the embedded one when there are no high-demand GPU intensive programs running. Disabling this hybrid graphics mode has made VSC very responsive and fast.
From one of the threads, you may have missed it.
1 Like
I have only one Integrated one: Intel(R) UHD Graphics 630
Do you think disable “Hybrid Graphics” mode will use?
Otherwise I reinstall windows but same the situation.
I put my question on Super User. Nobady answer me since.
Thank you for your answer
hi @nikolicsmilan77 where you able to find a solution to this?
I m having the same problem.
Thanks
system
Closed
May 27, 2022, 10:46am
12
This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.