You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I ran the command ps -eo pcpu,user,pid,command | grep Code and this is the process spiking to 100%.
100.0 sam 37109 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
It happened after the upgrade. I restarted my mac and it looks like it's ok now. If it happens again, what information can I provide to make this debuggable? I disabled all my extensions so it was a clean VS Code.
I've been tracking the same issue (also tsserver, same ps aux | grep PROC_ID results) for a few days now. I have a few interesting data points to share:
After quitting VSCode, and also when installing an upgrade, the high CPU process remains running, while another identical one spawns
After a while (~5 minutes?), the process returns to a normal CPU rate (0-1%)
I observed this behavior with VSCode in the background, after launching, then relaunching for update.
Additionally, I have observed a "Code Helper has quit unexpectedly" system modal after an hour or so of use - I'll keep track of my current process IDs to see if it is the tsserver processes that are quitting
cream:~ fatty$ ps aux | grep tsserver
fatty 18370 98.5 5.3 4043036 448640 ?? R 11:11AM 0:46.21 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
fatty 17662 93.3 4.4 6466928 370412 ?? R 11:04AM 4:07.14 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
fatty 18416 0.0 0.0 2459428 2044 s003 S+ 11:12AM 0:00.01 grep tsserver
fatty 18371 0.0 0.4 3360196 32024 ?? S 11:11AM 0:04.15 /Applications/Visual Studio Code.app/Contents/Frameworks/Code Helper.app/Contents/MacOS/Code Helper /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/out/utils/electronForkStart /Applications/Visual Studio Code.app/Contents/Resources/app/extensions/typescript/node_modules/typescript/lib/tsserver.js --useSingleInferredProject --enableTelemetry
Closing as we need the logs investigate this. Log collection should be simplified by #22914 for VSCode 1.11 but please provide logs using the environment variable approach mentioned until then
@teterovic Please open an new issue for this. Also please try collecting the TypeScript server logs. These logs contain detailed information about the time required to compute for each response:
Set "typescript.tsserver.log": "verbose"
Restart VSCode
Reproduce the issue
Run the Open TSServer log File command and view the tsserver.log file
If you can share the ts log file I can take a look through them to see if anything stands out
⚠️Warning: The TypeScript log may include information from your workspace, including file paths and source code. If you have any concerns about posting this publicly on Github, just let me know and we can arrange something else. On our side, we only use these logs to investigate issues like this
Activity
bpasero commentedon Feb 9, 2017
Sam Verschueren (@SamVerschueren) as usual we need a lot more details to understand why this happens.
SamVerschueren commentedon Feb 9, 2017
It happened after the upgrade. I restarted my mac and it looks like it's ok now. If it happens again, what information can I provide to make this debuggable? I disabled all my extensions so it was a clean VS Code.
jrieken commentedon Feb 9, 2017
Any chance you can share that project with us?
pdfowler commentedon Feb 9, 2017
I've been tracking the same issue (also
tsserver, sameps aux | grep PROC_IDresults) for a few days now. I have a few interesting data points to share:Additionally, I have observed a "Code Helper has quit unexpectedly" system modal after an hour or so of use - I'll keep track of my current process IDs to see if it is the
tsserverprocesses that are quittingmaxcan commentedon Feb 17, 2017
I'm seeing this too.
vs code 1.9.1
typescript 2.1.6
osx 10.12.2.
will try a restart
mjbvz commentedon Feb 24, 2017
Sorry for the delay following up on this issue.
Sam Verschueren (@SamVerschueren) To help us investigate, please try collecting a trace of the TypeScript Server when this occurs. Here's information on to do this using the TSS_LOG environment variable: https://github.com/Microsoft/TypeScript/wiki/Standalone-Server-%28tsserver%29#logging
From a command line, run:
Reproduce the problem in VSCode and then share the
tss.logfileLet me know if you have any questions about this.
Thanks
mjbvz commentedon Mar 20, 2017
Closing as we need the logs investigate this. Log collection should be simplified by #22914 for VSCode 1.11 but please provide logs using the environment variable approach mentioned until then
mjbvz commentedon Jul 19, 2017
@teterovic Please open an new issue for this. Also please try collecting the TypeScript server logs. These logs contain detailed information about the time required to compute for each response:
"typescript.tsserver.log": "verbose"Open TSServer log Filecommand and view thetsserver.logfileIf you can share the ts log file I can take a look through them to see if anything stands out