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

rg process taking up all my CPU #98594

Closed
samoclay opened this issue May 26, 2020 · 8 comments
Closed

rg process taking up all my CPU #98594

samoclay opened this issue May 26, 2020 · 8 comments
Assignees
Labels
info-needed Issue requires more information from poster

Comments

@samoclay
Copy link

samoclay commented May 26, 2020

  • VSCode Version: 1.45.1
  • OS Version: MacOS Catalina 10.15.4

Steps to Reproduce:

  1. Install VScode
  2. Install Node

Wasn't sure where to put this

Something is taking up all my CPU through a process called rg
Screenshot 2020-05-26 at 16 19 26

I ran a sample of the process here

which appears to mention
/Applications/Visual Studio Code.app/Contents/Resources/app/node_modules.asar.unpacked/vscode-ripgrep/bin/rg

So not sure how I can debug this further.

@vscodebot
Copy link

vscodebot bot commented May 26, 2020

(Experimental duplicate detection)
Thanks for submitting this issue. Please also check if it is already covered by an existing one, like:

@roblourens
Copy link
Member

This is used by search, so either you triggered a text search or file search in vscode, or an extension did, and it's taking an extremely long time to complete. Do any tips in here help? https://github.com/microsoft/vscode/wiki/Search-Issues#slow-search-rg-running-for-a-long-time-or-consuming-lots-of-cpumemory

@roblourens roblourens added the info-needed Issue requires more information from poster label May 26, 2020
@rxmarbles
Copy link

I too am experiencing this same issue on a mac os running catalina 10.15.5 where i will find 3 - 4 rg processes running high CPU usage and draining the battery. This is on VS Code version 1.45.1

@saifeiLee
Copy link

Same here. rg process takes 100% cpu.
Osx 10.15.5
VScode: 1.45.1
image
image

@rxmarbles
Copy link

Just to provide an update here I did disable "search.followSymlinks": false as per the doc above this seemed to have relieved my issue with long running rg processes. However I would like to point out with monorepos becoming more popular especially with lerna, should probably look to improving this process in the editor in future iterations.

@quasa0
Copy link

quasa0 commented Jul 15, 2020

"search.followSymlinks": false solved my issue too, thx

@alicederyn
Copy link

Same issue, same fix.

@bnaydenov
Copy link

I can confirm, same issue and same solutions work

@github-actions github-actions bot locked and limited conversation to collaborators Sep 8, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
info-needed Issue requires more information from poster
Projects
None yet
Development

No branches or pull requests

7 participants