Skip to content

v4.99.3 Memory Leak #7320

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

Open
2 tasks done
djarbz opened this issue Apr 21, 2025 · 8 comments
Open
2 tasks done

v4.99.3 Memory Leak #7320

djarbz opened this issue Apr 21, 2025 · 8 comments
Labels
bug Something isn't working triage This issue needs to be triaged by a maintainer

Comments

@djarbz
Copy link
Contributor

djarbz commented Apr 21, 2025

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.

@djarbz djarbz added bug Something isn't working triage This issue needs to be triaged by a maintainer labels Apr 21, 2025
@nowarzz
Copy link

nowarzz commented Apr 22, 2025

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

@code-asher
Copy link
Member

code-asher commented Apr 22, 2025

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.

@benz0li
Copy link
Contributor

benz0li commented Apr 23, 2025

@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).

@djarbz
Copy link
Contributor Author

djarbz commented Apr 23, 2025

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

@benz0li
Copy link
Contributor

benz0li commented Apr 23, 2025

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

Seems more like a browser issue.

@benz0li
Copy link
Contributor

benz0li commented Apr 23, 2025

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

@benz0li
Copy link
Contributor

benz0li commented Apr 23, 2025

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

  1. Browser extensions
  2. Private Mode
  3. Firewall

@djarbz
Copy link
Contributor Author

djarbz commented Apr 23, 2025

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?

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

No branches or pull requests

4 participants