code-server
code-server copied to clipboard
Inner processes like bootstrap-fork and tsserver increased after refreshing page
Is there an existing issue for this?
- [x] I have searched the existing issues
OS/Web Information
- Web Browser: Chrome
- Local OS: macOS
- Remote OS: Fedora Linux
- Remote Architecture: amd64
code-server --version: 4.95.2 with VSCode 1.95.2
Steps to Reproduce
- Go to https://github.com/codespaces/templates.
- Use React template.
- When project is ready, execute
ps -ef | grep bootstrap-forkorps -ef | grep tsserverin terminal. - Refresh page.
- Repeat Step 3, you will see the process number increased.
Expected
Reuse these processes after refreshing page.
Actual
I have a project that is very similar to codespace, so i use codespace to reproduce this issue. The increasing processes cost memery usage, after reaching the pod limit, it crashed!
Logs
@kikoshoung ➜ /workspaces/codespaces-react (main) $ ps -ef|grep tsserver
codespa+ 1057 583 2 03:23 ? 00:00:01 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /tmp/vscode-typescript1000/54ff302dd2a7fd6c1f58/tscancellation-47f35bb0a3517196c70a.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 1058 583 9 03:23 ? 00:00:08 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/54ff302dd2a7fd6c1f58/tscancellation-5b5497cd2ca0824b197d.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 2947 2873 5 03:24 ? 00:00:02 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /tmp/vscode-typescript1000/d33e0dcdab2886629a47/tscancellation-abaa3f32cc42aa747876.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 2948 2873 21 03:24 ? 00:00:08 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/d33e0dcdab2886629a47/tscancellation-cb81c1cebb2c90387c68.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 4200 4068 20 03:25 ? 00:00:01 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --serverMode partialSemantic --useInferredProjectPerProjectRoot --disableAutomaticTypingAcquisition --cancellationPipeName /tmp/vscode-typescript1000/676f2d32571613b2641c/tscancellation-f87e001b18544ef9cbdf.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 4201 4068 77 03:25 ? 00:00:06 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --max-old-space-size=3072 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/extensions/node_modules/typescript/lib/tsserver.js --useInferredProjectPerProjectRoot --enableTelemetry --cancellationPipeName /tmp/vscode-typescript1000/676f2d32571613b2641c/tscancellation-08d7b04182fd13e6e3a8.tmp* --locale en --noGetErrOnBackgroundUpdate --canUseWatchEvents --validateDefaultNpmLocation --useNodeIpc
codespa+ 4450 1131 0 03:25 pts/0 00:00:00 grep --color=auto tsserver
@kikoshoung ➜ /workspaces/codespaces-react (main) $ ps -ef|grep bootstrap-fork
codespa+ 583 554 8 03:23 ? 00:00:08 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --dns-result-order=ipv4first /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false
codespa+ 597 554 0 03:23 ? 00:00:00 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=fileWatcher
codespa+ 1085 554 0 03:23 ? 00:00:00 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=ptyHost --logsPath /home/codespace/.vscode-remote/data/logs/20250402T032337
codespa+ 2873 554 15 03:24 ? 00:00:07 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --dns-result-order=ipv4first /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false
codespa+ 2885 554 1 03:24 ? 00:00:00 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=fileWatcher
codespa+ 4068 554 29 03:24 ? 00:00:06 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node --dns-result-order=ipv4first /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=extensionHost --transformURIs --useHostProxy=false
codespa+ 4079 554 2 03:24 ? 00:00:00 /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/node /vscode/bin/linux-x64/ddc367ed5c8936efe395cffeec279b04ffd7db78/out/bootstrap-fork --type=fileWatcher
codespa+ 4915 1131 0 03:25 pts/0 00:00:00 grep --color=auto bootstrap-fork
Screenshot/Video
https://github.com/user-attachments/assets/2fee0ab9-d65b-4da4-bb75-03bc75a48ecb
Does this bug reproduce in native VS Code?
I did not test native VS Code
Does this bug reproduce in GitHub Codespaces?
Yes, this is also broken in GitHub Codespaces
Are you accessing code-server over a secure context?
- [x] I am using a secure context.
Notes
No response
I also encountered the same problem
same issue
If this is also broken in Codespaces then please report it upstream since it will need to be fixed in VS Code itself! https://github.com/microsoft/vscode
If this is also broken in Codespaces then please report it upstream since it will need to be fixed in VS Code itself! https://github.com/microsoft/vscode
Ok. I transfered this issue to VSCode:https://github.com/microsoft/vscode/issues/245826
Thank you for opening that issue! I will go ahead and close this one.