-
Notifications
You must be signed in to change notification settings - Fork 12.6k
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.js High CPU usage #32085
Comments
downgrading to 1.35 or 1.34 fix the issue, tsserver peaks only when I type something. |
@fotonmoton can you do one of the following?
For [1], it is probably easiest to start by deleting your node_modules folder and checking whether the problem reproduces. If so, then the bug is exclusively in your code and you don’t have to worry about types from packages. |
@fotonmoton I assigned this bug to you to gather more info. Please unassigned yourself when you are ready for me to look at it again. |
For VS Code, collecting the TS Server log is actually much easier:
|
For now I upgrade VS Code to 1.35.1 and can't reproduce described behavior, I enable verbose tsserver log and if something happen will submit output. |
I'm still having CPU issues as well. I'll attach my tsserver.log output. |
@marques-p44 you have a number of packages with performance problems that have recently been fixed, like lodash and styled-components. I believe material-ui might have perf problems, though I'm not sure.
|
Closing as it sounds like this is no longer reproducible for the original poster |
CPU at 1000% on macbook pro 2019, running the tslint plugin for intelij |
so uh, this isn't even a plugin, it's just bundled with vscode now, i've had to set:
I think vscode realized I was trying to kill it and it spun up and killed my server. |
Issue Type: Performance Issue
tsserver.js constantly using up to 120% of CPU even if nothing happening.
VS Code version: Code 1.35.1 (c7d83e57cd18f18026a8162d042843bda1bcf21f, 2019-06-12T14:27:31.086Z)
OS version: Linux x64 4.15.0-51-generic
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: disabled_software
surface_synchronization: enabled_on
video_decode: unavailable_off
webgl: enabled
webgl2: enabled
Process Info
Workspace Info
Extensions (19)
(2 theme extensions excluded)
The text was updated successfully, but these errors were encountered: