镜像站点 · 本页由第三方 GitHub 只读镜像提供,非 GitHub 官方站点,不接受任何登录或凭据输入。前往 github.com
Skip to content

v4.99.3 Memory Leak #7320

Description

@djarbz

Is there an existing issue for this?

  • I have searched the existing issues

OS/Web Information

  • Web Browser: Edge
  • Local OS: Windows 11
  • Remote OS: Fedora 41
  • Remote Architecture: amd64
  • code-server --version: 4.99.3

Steps to Reproduce

  1. Open Code server in MS Edge
  2. Wait...
  3. Watch Memory usage spike rapidly in the Edge Process Explorer as the interface becomes unresponsive.
  4. Refresh Code Server page, memory does not release but I can interact for a few minutes before it becomes unresponsive again.

Expected

Memory should not balloon drastically and the interface should remain quite responsive.

Actual

Memory and CPU usage quickly becomes drastic and the interface locks up until an out of memory error occurs.

Logs

Might need some guidance in collecting the logs from a Coder Workspaces session.

Screenshot/Video

No response

Does this bug reproduce in native VS Code?

I did not test native VS Code

Does this bug reproduce in GitHub Codespaces?

I did not test GitHub Codespaces

Are you accessing code-server over a secure context?

  • I am using a secure context.

Notes

code-server: v4.99.3
Code: 1.99.3
Commit: c36b2d3
Date: 2025-04-16T22:22:02.429Z (4 days ago)
Browser: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/135.0.0.0 Safari/537.36 Edg/135.0.0.0

I am using Coder Workspaces for my backend.
I am not seeing an issue in Google Chrome or Firefox.

Activity

  1. added
    bugSomething isn't working
    triageThis issue needs to be triaged by a maintainer
    on Apr 21, 2025
  2. nowarzz commented on Apr 22, 2025

    @nowarzz

    I am experiencing the same in google chrome, but not in firefox. I haven't tried using edge

  3. code-asher commented on Apr 22, 2025

    @code-asher
    Member

    Definitely curious to see if y'all can reproduce in Codespaces. I am not sure what we could have patched to create a memory leak, not impossible but it might be an upstream bug.

    Although, I am not sure but, I think in Codespaces when you refresh it recreates the server, so it might not reproduce so easily there.

  4. benz0li commented on Apr 23, 2025

    @benz0li
    Contributor

    @djarbz Can you reproduce at https://demo.jupyter.b-data.ch? All available images there serve code-server v4.99.3.

    I cannot reproduce when using Microsoft Edge v135.0.3179.85 (Official build) (64-bit).

  5. djarbz commented on Apr 23, 2025

    @djarbz
    ContributorAuthor

    Using Edge v135.0.3179.85 (Official build) (64-bit), it sat at 300k for a bit, but then skyrocketed up just sitting there without me actually doing anything. I'm assuming this means that it is an upstream issue?

    Image

    Google Chrome v135.0.7049.96 (Official Build) (64-bit) remains stable for me, again, not doing anything but letting is sit.

    Image

    Firefox v137.0.2 (64-bit) behaved much the same as Google Chrome.

    Image

  6. benz0li commented on Apr 23, 2025

    @benz0li
    Contributor

    I'm assuming this means that it is an upstream issue?

    Seems more like a browser issue.

  7. benz0li commented on Apr 23, 2025

    @benz0li
    Contributor

    I have these images running code-server all day long without any issues.

  8. benz0li commented on Apr 23, 2025

    @benz0li
    Contributor

    @djarbz Any errors in the browser console? Other things that may cause problems:

    1. Browser extensions
    2. Private Mode
    3. Firewall
  9. djarbz commented on Apr 23, 2025

    @djarbz
    ContributorAuthor

    Interesting, Private Mode did not crash.
    I disabled the BitWarden extension and normal mode has not crashed yet either...

    Image

    I re-enabled BitWarden and the memory usage started creeping back up, even in a "locked" state.
    Does anyone else have BitWarden that they can verify my findings?
    I do have BitWarden on my Chrome and Firefox browsers as well.

    What is the next step in troubleshooting to see if it is in fact a BW or CS issue?

  10. nowarzz commented on Apr 24, 2025

    @nowarzz

    @djarbz yes, I have bitwarden extension too. That explains why I am having the same issues.

    Literally I disabled all the extension except Bitwarden

  11. benz0li commented on Apr 24, 2025

    @benz0li
    Contributor

    What is the next step in troubleshooting to see if it is in fact a BW or CS issue?

    @djarbz If the memory footprint remains within expectations when using code-server with vanilla Edge, it is not a code-server issue.

  12. alexdc-info commented on May 5, 2025

    @alexdc-info

    I'm using Edge, and I started running into this issue last week, memory usage was growing from the normal 100-200 MB to greater than 40 GB before it crashed (I have 64 GB of RAM). After reading this thread, the only change I made was to disable the Bitwarden extension. I have not had the issue since. I will be mentioning this in the Bitwarden issue linked above, as it seems that the last comment there is suggesting it is an issue with Chrome.

  13. benz0li commented on May 6, 2025

    @benz0li
    Contributor

    @djarbz IMHO not a code-server issue.

    Please close.

  14. m0ta-ru commented on May 15, 2025

    @m0ta-ru

    @djarbz bro, I have the same problem, I tried for a very long time to find the cause and found that the code-server and the extension for bitwarden are incompatible, at least in current versions...

  15. saintox commented on Jun 16, 2025

    @saintox

    same problem here, got bitwarden extension too, creating new chrome profile (without extensions) dedicated to CS is my current workaround.

  16. nakermann1973 commented on Jun 27, 2025

    @nakermann1973

    FYI, it is sufficient to just disable bitwarden "Show autofill suggestions on form fields". I have done that and am not experiencing issues any more. I can still press ctrl-alt-L when highlighting a field to autofill.

    Edit: I was wrong. It just seems to take longer to run out of memory when disabling autofill, but is still happens :(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

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