microsoft / vscode

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

heating issues on mac book pro Chip : Apple M1 Pro #207412

Open abhideshpande opened 8 months ago

abhideshpande commented 8 months ago

Type: Performance Issue

The mac book pro Apple M1 pro heats up when running vs code

VS Code version: Code 1.85.2 (8b3775030ed1a69b13e4f4c628c612102e30a681, 2024-01-18T06:40:11.430Z) OS version: Darwin arm64 23.3.0 Modes: Remote OS version: Linux x64 5.4.17-2136.324.5.3.el7uek.x86_64

System Info |Item|Value| |---|---| |CPUs|Apple M1 Pro (8 x 24)| |GPU Status|2d_canvas: enabled
canvas_oop_rasterization: enabled_on
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
video_decode: enabled
video_encode: enabled
vulkan: disabled_off
webgl: enabled
webgl2: enabled
webgpu: enabled| |Load (avg)|6, 6, 7| |Memory (System)|16.00GB (0.08GB free)| |Process Argv|--crash-reporter-id 1ebbd9f4-d940-4261-84a2-308fa471af34| |Screen Reader|no| |VM|0%| |Item|Value| |---|---| |Remote|SSH: bankingdevopsoci.oraclecorp.com| |OS|Linux x64 5.4.17-2136.324.5.3.el7uek.x86_64| |CPUs|AMD EPYC 7742 64-Core Processor (8 x 2245)| |Memory (System)|62.29GB (41.47GB free)| |VM|0%|
Process Info ``` CPU % Mem MB PID Process 3 164 5826 code main 0 49 5829 gpu-process 1 33 5830 utility-network-service 1 82 5878 shared-process 0 0 36160 /bin/ps -ax -o pid=,ppid=,pcpu=,pmem=,command= 0 33 5880 ptyHost 0 164 24108 window [4] (Root) 0 33 24109 fileWatcher [4] 0 49 24110 extensionHost [4] 0 33 24111 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/abdeshpa/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=24110) 0 33 24113 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/abdeshpa/.vscode/extensions/mtxr.sqltools-0.28.1/dist/languageserver.js --node-ipc --clientProcessId=24110) 0 16 24118 /Users/abdeshpa/.vscode/extensions/oracle.sql-developer-23.4.1-darwin-arm64/dbtools/jdk/Contents/Home/bin/java -Djava.awt.headless=true -classpath /Users/abdeshpa/.vscode/extensions/oracle.sql-developer-23.4.1-darwin-arm64/dbtools/lib/classpath/osdt_cert-21.11.0.0.230512.jar:/Users/abdeshpa/.vscode/extensions/oracle.sql-developer-23.4.1-darwin-arm64/dbtools/lib/classpath/osdt_core-21.11.0.0.230512.jar -p /Users/abdeshpa/.vscode/extensions/oracle.sql-developer-23.4.1-darwin-arm64/dbtools/lib/modules/:/Users/abdeshpa/.vscode/extensions/oracle.sql-developer-23.4.1-darwin-arm64/dbtools/sqlcl/lib/modules/ -m com.oracle.dbtools.app/com.oracle.dbtools.app.DatabaseToolsApplication server --key-id dbtools-client-24110 --clientProcessId 24110 MIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAzf1u45jrVrb2VF2bF3EhjiS69zH3g4H4dQ40VsLWGzpQoOS7jjs7F0AWvdHPn0ltadBpOztvUbK7EaHyrFT+gKCLQnxdcYvz84D/V7PY+HMc66b1Wgjdw31Zfkx26p6m4V7+c1gU0g6JOJKM1JSGmGG5BDKeGdQzSDRoqw2vK+780mkWe48P9DR+UREVk95Y6rPGcLLDZ3cKpwj4wJOjXR1/rlmw8tijhOHjGDFOVaZiaX0wIIKFP5xESPGqgy0RxuyUivQ3Ej1y0bt+ujD5moY2oYkarwN77T3rjAkIfH+A4i144glf5ZLwu69BX8t8VfiQGGWvs7CBqCTdNlV0VwIDAQAB 0 33 24119 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/abdeshpa/.vscode/extensions/streetsidesoftware.code-spell-checker-3.0.1/packages/_server/dist/main.cjs --node-ipc --clientProcessId=24110) 0 16 24138 /Users/abdeshpa/.vscode/extensions/oracle.mysql-shell-for-vs-code-1.14.2-darwin-arm64/shell/bin/mysqlsh --no-defaults --py -e gui.start.web_server(port=53560, secure={}, read_token_on_stdin=True) 0 16 24140 /Users/abdeshpa/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.116.0/aarch64-apple-darwin/TabNine --tls_config insecure=false --no-lsp=true --client=vscode --client-metadata clientVersion=1.85.2 pluginVersion=3.76.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 vscode-theme-name=Default Light+ vscode-theme-kind=Light vscode-machine-id=4abb5efaf6c8f718600ea6a9b87482e2a8833bfcd9f7212de508d9f8539325a5 vscode-is-new-app-install=false vscode-session-id=d1f31ba6-ca17-45b0-a371-f6babede1a4b1710238714014 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 0 16 24157 /Users/abdeshpa/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.116.0/aarch64-apple-darwin/TabNine --tls_config insecure=false --no-lsp=true --client=vscode --client-metadata clientVersion=1.85.2 pluginVersion=3.76.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 vscode-theme-name=Default Light+ vscode-theme-kind=Light vscode-machine-id=4abb5efaf6c8f718600ea6a9b87482e2a8833bfcd9f7212de508d9f8539325a5 vscode-is-new-app-install=false vscode-session-id=d1f31ba6-ca17-45b0-a371-f6babede1a4b1710238714014 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 --no_bootstrap 0 16 24278 /Users/abdeshpa/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.116.0/aarch64-apple-darwin/TabNine-deep-local --settings /Users/abdeshpa/Library/Preferences/TabNine/local.settingsce94127bSmall --settings-version 1 --client vscode --client-metadata clientVersion=1.85.2 pluginVersion=3.76.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 vscode-theme-name=Default Light+ vscode-theme-kind=Light vscode-machine-id=4abb5efaf6c8f718600ea6a9b87482e2a8833bfcd9f7212de508d9f8539325a5 vscode-is-new-app-install=false vscode-session-id=d1f31ba6-ca17-45b0-a371-f6babede1a4b1710238714014 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 --tls_config insecure=false 0 16 35621 /Users/abdeshpa/Library/Application Support/Code/User/globalStorage/tabnine.tabnine-vscode/binaries/4.116.0/aarch64-apple-darwin/WD-TabNine --tls_config insecure=false --client vscode --client-metadata clientVersion=1.85.2 pluginVersion=3.76.0 t9-vscode-AutoImportEnabled=true t9-vscode-TSAutoImportEnabled=true t9-vscode-JSAutoImportEnabled=true vscode-telemetry-enabled=true vscode-remote=false vscode-extension-kind=1 vscode-theme-name=Default Light+ vscode-theme-kind=Light vscode-machine-id=4abb5efaf6c8f718600ea6a9b87482e2a8833bfcd9f7212de508d9f8539325a5 vscode-is-new-app-install=false vscode-session-id=d1f31ba6-ca17-45b0-a371-f6babede1a4b1710238714014 vscode-language=en vscode-app-name=Visual Studio Code vscode-beta-channel-enabled=false vscode-status-customization=unknown vscode-inline-api-enabled=true vscode-code-lens-enabled=true vscode-found-intellicode=false ide-restart-counter=0 0 33 24148 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/json-language-features/server/dist/node/jsonServerMain --node-ipc --clientProcessId=24110) 0 49 24169 window 0 98 24172 window 0 98 36154 window [5] (Issue Reporter) 0 16 86324 utility-process 5 197 96096 window [3] (pod_status.log — lib [SSH: bankingdevopsoci.oraclecorp.com]) 0 33 96407 fileWatcher [3] 1 49 96408 extensionHost [3] 0 33 96431 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/abdeshpa/.vscode/extensions/ms-vscode-remote.remote-ssh-0.107.1/out/localServer.js {"serverId":1,"ipcHandlePath":"/var/folders/2l/xn_kg_ks1tjcxpc9y5jgr9h80000gn/T/vscode-ssh-askpass-52f5d95c1a9ff4a43cf8a330ed23dce56494a7b6.sock","sshCommand":"ssh","sshArgs":["-v","-T","-D","52893","-o","ConnectTimeout=15","bankingdevopsoci.oraclecorp.com"],"serverDataFolderName":".vscode-server","dataFilePath":"/Users/abdeshpa/Library/Application Support/Code/User/globalStorage/ms-vscode-remote.remote-ssh/vscode-ssh-host-93c970f8-8b3775030ed1a69b13e4f4c628c612102e30a681-0.107.1-tr/data.json"}) 0 0 96443 ssh -v -T -D 52893 -o ConnectTimeout=15 bankingdevopsoci.oraclecorp.com 0 33 96466 electron-nodejs (/Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper (Plugin).app/Contents/MacOS/Code Helper (Plugin) --ms-enable-electron-run-as-node /Users/abdeshpa/.vscode/extensions/formulahendry.auto-rename-tag-0.1.10/packages/server/dist/serverMain.js --node-ipc --clientProcessId=96408) Remote: SSH: bankingdevopsoci.oraclecorp.com CPU % Mem MB PID Process 12 33 32716 remote agent ```
Workspace Info ``` | Remote: SSH: bankingdevopsoci.oraclecorp.com| Folder (lib): more than 20431 files| File types: json(5328) sql(848) xml(834) html(455) rb(437) csv(374) | MF(317) jar(269) zip(250) tar(202) | Conf files: tasks.json(4) settings.json(1); ```
Extensions (71) Extension|Author (truncated)|Version ---|---|--- vscode-css-formatter|aes|1.0.2 laravel-extra-intellisense|ami|0.6.4 laravel-blade-vscode|ami|2.0.4 laravel-blade-spacer|aus|2.3.0 tailwind-docs|aus|2.1.0 tailwindshades|bou|0.0.5 htmltagwrap|bra|1.0.0 vscode-tailwindcss|bra|0.10.5 laravel-blade|cjh|1.1.2 gitignore|cod|0.9.0 laravel-goto-view|cod|1.3.11 laravel-goto-controller|ctf|0.6.8 vscode-eslint|dba|2.4.4 composer-php-vscode|DEV|1.45.15061 java-decompiler|dgi|0.0.3 xml|Dot|2.5.1 auto-close-tag|for|0.5.15 auto-rename-tag|for|0.1.10 docker-explorer|for|0.1.7 docker-extension-pack|for|0.0.1 vscode-mysql|for|0.5.0 shell-format|fox|7.2.5 php-laravel-pack|fra|0.0.3 laravel-create-view|gli|0.0.6 ruby|gro|0.1.0 laravel-blade-wrapper|IHu|1.0.1 jfrog-vscode-extension|JFr|2.9.6 svn-scm|joh|2.17.0 java-spring-extension-pack|loi|0.1.3 ruby-rubocop|mis|0.8.6 laravel-expack|Mis|1.0.6 laravel-intellisense|moh|0.2.0 vscode-docker|ms-|1.29.0 vscode-kubernetes-tools|ms-|1.3.15 debugpy|ms-|2024.0.0 python|ms-|2024.2.1 vscode-pylance|ms-|2024.2.3 jupyter|ms-|2024.1.0 remote-containers|ms-|0.338.1 remote-ssh|ms-|0.107.1 live-server|ms-|0.4.13 sqltools|mtx|0.28.1 php-docblocker|nei|2.7.0 laravel-blade|one|1.35.1 laravel-extension-pack|one|1.2.0 laravel5-snippets|one|1.17.0 mysql-shell-for-vs-code|Ora|1.14.2 sql-developer|Ora|23.4.1 docker-compose|p1c|0.5.1 laravel-jump-controller|pgl|0.0.33 java-ide-pack|pve|1.2.1 laravel-helpers|raf|0.2.2 java|red|1.28.1 vscode-xml|red|0.26.1 vscode-yaml|red|1.14.0 shellman|Rem|5.7.0 laravel-artisan|rya|0.0.31 sorbet-vscode-extension|sor|0.3.33 css-auto-prefix|spo|0.1.7 guides|spy|0.9.3 code-spell-checker|str|3.0.1 prettier-plus|svi|4.2.2 tabnine-vscode|Tab|3.76.0 pdf|tom|1.2.2 intellicode-api-usage-examples|Vis|0.2.8 vscodeintellicode|Vis|1.2.30 vscode-java-dependency|vsc|0.23.5 vscode-icons|vsc|12.7.0 vscode-ruby|win|0.28.0 vscode-import-cost|wix|3.3.0 axios-snippets|Ygg|1.0.0
A/B Experiments ``` vsliv368:30146709 vspor879:30202332 vspor708:30202333 vspor363:30204092 vscod805cf:30301675 binariesv615:30325510 vsaa593cf:30376535 py29gd2263:30899288 c4g48928:30535728 azure-dev_surveyone:30548225 vscrp:30673768 962ge761:30959799 pythongtdpath:30769146 welcomedialog:30910333 pythonidxpt:30866567 pythonnoceb:30805159 asynctok:30898717 pythontestfixt:30902429 pythonregdiag2:30936856 pyreplss1:30897532 pythonmypyd1:30879173 pythoncet0:30885854 pythontbext0:30879054 dsvsc016:30899300 dsvsc017:30899301 dsvsc018:30899302 pydisww2:30981708 cppperfnew:30979542 d34g3935:30971562 bg6jg535:30979843 dsvsc020:30976470 ```
vscodenpa commented 8 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.87.1. Please try upgrading to the latest version and checking whether this issue remains.

Happy Coding!

hippietrail commented 3 weeks ago

When this happens to me on my M1 Air it's usually an extension. Recently it happens with large Java projects where it must be indexing all the symbols the first time. When the M1 was new problems that did things like this were much more common.

Next time open Activity Monitor and sort by CPU usage.