-
Notifications
You must be signed in to change notification settings - Fork 30.2k
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
Zombie TS-server processes #17156
Comments
Update: I think this is easy to reproduce by just reloading the window with TS files open. The typings installer seems to cause the TS server to stay alive. |
I am not able to reproduce this on Windows however Windows has a more aggressive strategy to kill processes when parent processes die. @mjbvz can you have a look on Mac please. The way how that should work is as follows: the tsserver listen on a close event on the stream it is reading / writing to and exits if this happens. See https://github.com/Microsoft/TypeScript/blob/master/src/server/server.ts#L396 So either the streams don't close or the tsserver can't process the event since it is busy. @bpasero the ATA process is in since quite some time. Have you seen this before. Might be a change caused by adopting 2.1.x ? |
I never actually looked for this issue so I am not sure if it is new or not. |
I'm also getting this. Not sure if it's exactly the same but towards the end of the day I'll have between 1-5 extra "Code Helper" processes, each taking around 100% CPU each. Ping me if you want me to do anything, cause it happens all the time to me. I'm on gitter all day every day: intellix TypeScript: 2.0.10 |
@intellix To find out more about this issue, we need to get at the process that is causing the high load. VS Code creates multiple processes, each with different tasks. Depending on your OS you can get at the full command line of the process and paste it here. On Mac, the Activity Monitor allows to find the On Windows a tool like Process Explorer helps: Once you have the information please update this issue with it. Thanks! |
ok so it seems to be caused by this: https://github.com/angular/vscode-ng-language-service
|
During last month's TS performance investigation, we tracked down many cases of these zombie processes to this TS file watcher bug: microsoft/TypeScript#14636 One possible workaround is to make sure that all of your If you are still seeing either tsserver or typingsinstaller processes hanging around in the VSCode 1.11 even after you have properly setup your |
Steps to Reproduce:
(note that I am running out of sources, did not try to reproduce from a real build)
=> at this point the activity manager shows left over TS server processes that seem to have no parent
The process in question seems to be the typings installer:
The text was updated successfully, but these errors were encountered: