-
Notifications
You must be signed in to change notification settings - Fork 12.8k
TS Server high cpu usage after yarn install #37653
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
Comments
I haven't isolated the issue precisely yet, but I have a very similar behaviour. Actually I need to restart VSCode to get back the CPU to low usage. |
@RyanCavanaugh This is a priority for the VS Code team but adding the label means it may not show up in your query. Just want to make sure you see it |
Investigating |
Can you try #38560 (comment) build to see if its better |
Thanks @sheetalkamat! I just tested that branch and confirmed the performance is much, much better on MacOS. I still see a large number of directory watch entries in the logs but all of them now take 0ms. My test was:
I did not see the prolonged high cpu usage we had previously and the responsiveness was much better after the install |
Thanks .. there hasn’t been change in what we watch .. the previous change was on how we update on those events .. so this change just tunes it more .. thanks for verifying.. will get PR ready for review |
still happen in the latest vscode |
@lehoai Please open a new issue with steps to reproduce the problem |
TypeScript Version: 3.9.0-dev.20200316
Search Terms:
Repro
src
yarn
Bug
The CPU usage of TS Server remained high for about 10 minutes after doing this. In the TS Server logs, I see a huge block of logged lines that look like:
The text was updated successfully, but these errors were encountered: