Skip to content

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

Open
@kikoshoung

Description

@kikoshoung

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingneeds-investigationThis issue needs to be further investigatedtriageThis issue needs to be triaged by a maintainer

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions