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

tsserver 100% CPU #98665

Closed
rebornix opened this issue May 27, 2020 · 5 comments
Closed

tsserver 100% CPU #98665

rebornix opened this issue May 27, 2020 · 5 comments
Assignees
Labels
perf typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Milestone

Comments

@rebornix
Copy link
Member

Issue Type: Bug

Ran into this issue a couple of times with VS Code repo recently with TypeScript 3.9.3, the syntax only tsserver is running fine.

VS Code version: Code - Insiders 1.46.0-insider (876f2e7, 2020-05-27T05:41:02.088Z)
OS version: Darwin x64 19.4.0
Remote OS version: Darwin x64 19.4.0

System Info
Item Value
CPUs Intel(R) Core(TM) i9-9980HK CPU @ 2.40GHz (16 x 2400)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
metal: disabled_off
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_renderer: disabled_off_ok
video_decode: enabled
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 3, 3, 3
Memory (System) 32.00GB (0.95GB free)
Process Argv -psn_0_3576681
Screen Reader no
VM 12%
Item Value
Remote SSH: penlv-imac
OS Darwin x64 19.4.0
CPUs Intel(R) Core(TM) i7-9700K CPU @ 3.60GHz (8 x 6182)
Memory (System) 32.00GB (21.50GB free)
VM 0%
Extensions (23)
Extension Author (truncated) Version
comment-tagged-templates bie 0.3.0
github-markdown-preview bie 0.0.2
markdown-emoji bie 0.0.9
markdown-preview-github-styles bie 0.1.6
gitlens eam 10.2.1
tsl-problem-matcher eam 0.2.0
vscode-pull-request-github-insiders Git 2020.5.38341
vscode-docker ms- 1.2.1
vscode-language-pack-zh-hans MS- 1.46.0
remote-containers ms- 0.118.0
remote-ssh-edit-nightly ms- 2020.5.19620
remote-ssh-nightly ms- 2020.5.19620
js-debug-nightly ms- 2020.5.1917
powershell ms- 2020.4.0
vscode-github-issue-notebooks ms- 0.0.24
vsliveshare ms- 1.0.2236
debugger-for-chrome msj 4.12.8
kuskus-extensions-pack ros 1.0.1
kuskus-kusto-language-server ros 1.0.1
kuskus-kusto-syntax-highlighting ros 1.1.8
sourcekit-lsp unp 0.0.1
notebook-renderers vsc 1.0.0
notebook-test vsc 1.0.0

(5 theme extensions excluded)

@mjbvz
Copy link
Collaborator

mjbvz commented May 27, 2020

@rebornix Did you run yarn before this happened? Sometime a yarn install can trigger this

@rebornix
Copy link
Member Author

Right, I yarn after fetching master due to electron version change. Will keep an eye on this.

@mjbvz
Copy link
Collaborator

mjbvz commented May 27, 2020

Thanks. I believe this is the same issue as microsoft/TypeScript#37653 then. I'm going to test out the potential TS fix for this

@mjbvz mjbvz added this to the June 2020 milestone May 30, 2020
@mjbvz mjbvz added perf typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream labels May 30, 2020
@rebornix
Copy link
Member Author

rebornix commented Jun 8, 2020

I can confirm that the issue I was seeing was the typescript bug linked above, every time after yarn, tsserver goes to 100%.

@mjbvz
Copy link
Collaborator

mjbvz commented Jun 12, 2020

Just updated VS Code to use TypeScript 4.0 in the workspace. Please let me know if you see this again after running yarn install

@mjbvz mjbvz closed this as completed Jun 12, 2020
@github-actions github-actions bot locked and limited conversation to collaborators Jul 27, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
perf typescript Typescript support issues upstream-issue-linked This is an upstream issue that has been reported upstream
Projects
None yet
Development

No branches or pull requests

2 participants