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

Inner processes like bootstrap-fork and tsserver increased after refreshing page #7297

Open
2 tasks done
kikoshoung opened this issue Apr 2, 2025 · 3 comments
Open
2 tasks done
Labels
bug Something isn't working needs-investigation This issue needs to be further investigated triage This issue needs to be triaged by a maintainer

Comments

@kikoshoung
Copy link

Is there an existing issue for this?

  • 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

  1. Go to https://github.com/codespaces/templates.
  2. Use React template.
  3. When project is ready, execute ps -ef | grep bootstrap-fork or ps -ef | grep tsserver in terminal.
  4. Refresh page.
  5. 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

2025-04-02.10.25.38.mp4

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?

  • I am using a secure context.

Notes

No response

@kikoshoung kikoshoung added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Apr 2, 2025
@coder-labeler coder-labeler bot added the needs-investigation This issue needs to be further investigated label Apr 2, 2025
@kikoshoung kikoshoung marked this as a duplicate of #7296 Apr 2, 2025
@q479902964
Copy link

I also encountered the same problem

@xq455761
Copy link

xq455761 commented Apr 2, 2025

same issue

@code-asher
Copy link
Member

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-investigation This issue needs to be further investigated triage This issue needs to be triaged by a maintainer
Projects
None yet
Development

No branches or pull requests

4 participants