Extension causes high cpu load
See original GitHub issue- Issue Type:
Performance
- Extension Name:
vscode-jest
- Extension Version:
2.9.2
- OS Version:
Linux x64 4.18.0-18-generic
- VSCode version:
1.33.1
⚠️ Make sure to attach this file from your home-directory:
⚠️/home/lexy/Orta.vscode-jest-unresponsive.cpuprofile.txt
Find more details here: https://github.com/Microsoft/vscode/wiki/Explain:-extension-causes-high-cpu-load
Issue Analytics
- State:
- Created 4 years ago
- Comments:10 (1 by maintainers)
Top Results From Across the Web
Extension causes high cpu load · Issue #1033 - GitHub
Recently I upgraded my global eslint to v7, if that's important, but I believe the high CPU usage goes back a long way....
Read more >[SOLVED] Chrome High CPU Usage - Driver Easy
Chrome extensions are also known to cause Chrome high system resources usage, such as 100% CPU, memory or disk usage.
Read more >VS Code using all of the CPUs and how to fix it - Remy Sharp
TL;DR: (yes, I ramble): use "Start extension bisect" in VS Code, it'll take less than 5 minutes. This is what I'm talking about....
Read more >High CPU usage: What are the potential causes? - IONOS
CPU usage indicates the degree of processing power that a PC's running processes require at any given moment. If it is too high,...
Read more >High CPU usage due to CEPHtmlEngine - Adobe Support
Solution 1: Delete the plug-in extension folder causing high CPU usage · Solution 2: Check the log files folder · macOS · Windows...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
So personally I think this is just because it spawns a metric arse load of workers. More than I have cores, which seems strange. I’m not using any snapshots. I looked pretty hard for a way to specify the
--maxWorkers=<num>|<string>
option to the extension, but couldn’t see a way. Maybe adding that as an option would give us some control at least?I guess it’s spawning one less than the number of virtual cores, which is the default for jest. The problem is there’s often a lot of other things going on, like language servers, linters, etc. or I have a couple of instances of VSCode open, all running tests. I’d much prefer this to be lower by default. In fact, Jest in watch mode apparently defaults to half the available cores for this reason.
Are there any updates to this?