Skip to content

High memory consumption of WebView on MacOS when there is many uncommitted files and leakiness #8690

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
Byron opened this issue May 21, 2025 · 1 comment

Comments

@Byron
Copy link
Collaborator

Byron commented May 21, 2025

When there are a lot of uncommitted changes…

Image

…and when scrolling through all of them, the memory consumption will rise constantly into multi-gigabyte territory.

A small project starts out like this: Image

Entering a project with ~6800 of changes brings it to 900MB: Image.

Scrolling through to the end of the files list brings it up to 2.25GB Image.

Switching back to a small project that has only 541 DOM nodes (as opposed to 131k for the previous state) does not release the memory (which is unexpected).

@Byron Byron changed the title High memory consumption of WebView on MacOS when there is many uncommitted files High memory consumption of WebView on MacOS when there is many uncommitted files and leakiness May 21, 2025
@Byron
Copy link
Collaborator Author

Byron commented May 21, 2025

@estib-vega I think we have a problem with memory consumption in general. While writing this I switched back and forth between a large and a small project, and ended up at 8GB of real memory consumption within a couple of minutes.

The memory isn't released when switching to another project, even though I think that closing and reopening just the window would work as it would kill the process that holds the memory.

Image

It could be that am mixing up Memory and Real Memory and that these 8GB are 'just' 2.7GB in the memory banks, but the issue remains: it uses too much and doesn't free it.

The backend has similar issues, interestingly, and is up to 923MB despite doing nothing and holding no cached information.

Image

Should probably keep an eye out for that.

CC @krlvi

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant