Skip to content

constant heavy CPU usage by bootstrap-fork.js #7230

Open
@mirekphd

Description

@mirekphd

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Firefox
  • Local OS: Ubuntu 22.04 LTS
  • Remote OS: Ubuntu 22.04 LTS
  • Remote Architecture: x64
  • code-server --version:
    1.97.2
    34b8d2e
    x64

Steps to Reproduce

  1. docker run the latest version of my latestml/ml-gpu-py311-cuda118-vsc-hf:latest container with latest code-serverand a few useful VSC extensions pre-installed
  2. run Terminal in code-server
  3. run htop
  4. order by CPU (descending)
  5. notice multiple (e.g. 3 in case of my 12-threads 6-cores server) processes of /usr/lib/code-server/lib/vscode/out/bootstrap-fork.js running (executed by /usr/lib/code-server/lib/node), each with "100%" i.e. 1 full CPU thread (here: 3/12=1/4 of total CPU capacity utilized in total)

Expected

No heavy CPU background usage.

Actual

1/4 of all CPU threads are being constantly used (3 out of 12).

Logs

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

Yes, this is also broken in 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 workingtriageThis 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