Repository navigation
v4.99.3 Memory Leak #7320
Description
Activity
- addedbugSomething isn't workingSomething isn't workingtriageThis issue needs to be triaged by a maintainerThis issue needs to be triaged by a maintainer
on Apr 21, 2025 I am experiencing the same in google chrome, but not in firefox. I haven't tried using edge
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.
@djarbz Can you reproduce at https://demo.jupyter.b-data.ch? All available images there serve
code-serverv4.99.3.I cannot reproduce when using Microsoft Edge v135.0.3179.85 (Official build) (64-bit).
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?
Google Chrome v135.0.7049.96 (Official Build) (64-bit) remains stable for me, again, not doing anything but letting is sit.
Firefox v137.0.2 (64-bit) behaved much the same as Google Chrome.
I'm assuming this means that it is an upstream issue?
Seems more like a browser issue.
I have these images running
code-serverall day long without any issues.@djarbz Any errors in the browser console? Other things that may cause problems:
- Browser extensions
- Private Mode
- Firewall
Interesting, Private Mode did not crash.
I disabled the BitWarden extension and normal mode has not crashed yet either...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?
@djarbz yes, I have bitwarden extension too. That explains why I am having the same issues.
Literally I disabled all the extension except Bitwarden
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.
@djarbz IMHO not a
code-serverissue.Please close.
@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...
same problem here, got bitwarden extension too, creating new chrome profile (without extensions) dedicated to CS is my current workaround.
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 :(




Is there an existing issue for this?
OS/Web Information
code-server --version: 4.99.3Steps to Reproduce
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?
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.