question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

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:open
  • Created 4 years ago
  • Comments:10 (1 by maintainers)

github_iconTop GitHub Comments

1reaction
franklin-rosscommented, Jan 9, 2020

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?

image

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.

0reactions
rue-mishakorablincommented, Jun 9, 2020

Are there any updates to this?

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found