Memory usage only grows over time
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(firefox77 fixed)
Tracking | Status | |
---|---|---|
firefox77 | --- | fixed |
People
(Reporter: guillaume1.gomez, Assigned: loganfsmyth)
References
(Blocks 1 open bug)
Details
Attachments
(4 files)
User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:70.0) Gecko/20100101 Firefox/70.0
Steps to reproduce:
Nothing particular really. I keep the same tabs open and open one from time to time to make a google search but the number remains under 30. The issue is that firefox's memory usage keeps growing over time and the memory cleanup (about:memory tools) doesn't change it.
The surprising thing is that about:performance is telling me that my tabs are using less than 1Go of RAM whereas htop is telling me that firefox is using 40% (~8Go). The only way to clean the ram usage is to restart firefox.
Actual results:
Memory usage only growing over time.
Expected results:
The memory usage should remain around the same or at least getting reduced when memory clean is performed.
Reporter | ||
Comment 1•5 years ago
|
||
Comment 2•5 years ago
|
||
Worth noting that the reporter is using the devtools to work on qwant maps locally.
In the first report there is a 2Go ArrayBuffer in the parent process that looks like the wasm heap of source-map handler.
There's also quite a large number of fairly big strings coming from dev tools that seem to be the source code of what the reporter was working on (qwant maps). Some of these strings are reportedly copied a lot of times, amounting to 1.2 Go of strings if I read the report correctly.
I don't know if these are reasonable numbers (depends on the size of the code that is being loaded I suppose) but they amount to about 4Go of RAM allocated by the devtools so it's worth taking a look.
Comment 3•4 years ago
|
||
Hi guillaume1.gomez,
Thanks for submitting this bug to us. I wasn't able to reproduce it using Firefox Nightly 72.0a1 (2019-11-28) (64-bit) on Ubuntu 18.04
Can you please download Firefox Nightly from here: https://nightly.mozilla.org/ and retest the problem and see if the issue still occurs there as well?
Thanks!
Sebas
Reporter | ||
Comment 4•4 years ago
|
||
No, still present. Just reloading the Qwant maps page makes the memory usage grow by 0.5% (~80 Mo).
Comment 5•4 years ago
|
||
Thanks for the additional information.
I've set a component so that the development team reviews this issue. Thanks!
Have a great one.
Clara
Comment 6•4 years ago
|
||
Thanks for the report. I am moving this bug to DevTools because the memory report seem to indicate that maybe there could be a problem around string copy
Comment 7•4 years ago
|
||
Putting under Debugger for now, as it shows a source map array buffer.
Jason, could you help with root cause analysis or recommend somebody else?
Assignee | ||
Comment 8•4 years ago
|
||
Updated•4 years ago
|
Assignee | ||
Comment 9•4 years ago
|
||
Depends on D69930
Assignee | ||
Comment 10•4 years ago
|
||
I believe this is the issue, though I didn't spend much time trying to reproduce the specific memory reports here, this is absolutely a large leak that would reproduce in the way the memory reports are showing.
Comment 11•4 years ago
|
||
Pushed by loganfsmyth@gmail.com: https://hg.mozilla.org/integration/autoland/rev/e4b82d2a2de0 Part 1: Update bundles with recent Boolean changes. r=jlast https://hg.mozilla.org/integration/autoland/rev/9070a2b4490a Part 2: Avoid leaking memory for sourcemap loading. r=jlast
Comment 12•4 years ago
|
||
bugherder |
https://hg.mozilla.org/mozilla-central/rev/e4b82d2a2de0
https://hg.mozilla.org/mozilla-central/rev/9070a2b4490a
Description
•