Skip to content
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

High memory usage of the browser process after some time (leak?) #22339

Open
atuchin-m opened this issue Apr 15, 2022 · 3 comments
Open

High memory usage of the browser process after some time (leak?) #22339

atuchin-m opened this issue Apr 15, 2022 · 3 comments
Assignees

Comments

@atuchin-m
Copy link
Contributor

Steps (very unclear for now):

  1. Use a browser in a normal way from sometime;
  2. Close all the tab except about:blank;
  3. Measure the browser process memory usage using internal task manager;
  4. Restart the browser (with about:blank) and measure again.

Expectation:
Memory usage in 3) should be <= 1.5x of the amount in 4)

Actual:
385MB in 3), less than 100mb in 4)

browser_idle_memory_leak

@atuchin-m
Copy link
Contributor Author

One of possible reason is #21603 (comment).
Looks like we need to measure memory used by Rust somehow.
Here is Mozilla approach: https://github.com/servo/servo/blob/master/components/malloc_size_of/lib.rs

@atuchin-m
Copy link
Contributor Author

atuchin-m commented Apr 15, 2022

I'm able to reproduce on a fresh profile after opening 5 heavy sites. The screenshots with/without adblock (was disabled by deleting and blocking the component downloading).
image

So the adblock is a primary reason for this.

@iefremov
Copy link
Contributor

First step would be #26892

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

No branches or pull requests

2 participants