Closed Bug 1612051 Opened 5 years ago Closed 4 years ago

Devtools is leaking memory when the page gets refreshed

Categories

(DevTools :: General, defect, P2)

73 Branch
defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1682212

People

(Reporter: u656080, Unassigned)

References

(Blocks 1 open bug)

Details

(Keywords: memory-leak)

Attachments

(1 file)

Attached file memory-report.json.gz

User Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:73.0) Gecko/20100101 Firefox/73.0

Steps to reproduce:

I develop locally using webpack or brower-sync. Both tools trigger this issue.

While having the devtools open and working on a page's source code, the page gets automatically refreshed every time I save a file.

Actual results:

The RAM usage of Firefox increases continually, until all of my 16 GB RAM and 16 GB of swap are allocated.

Closing the devtools frees some of the memory. Closing the tab frees some more. Restarting the browser frees all of the allocated memory.

Expected results:

RAM usage should not increase while reloading a web page.

Component: Untriaged → General
Keywords: memory-leak
Product: Firefox → DevTools

As a brief investigation, this is a profile with native allocation. Running react-starter-kit locally and repeatably editing/saving a CSS file with the Debugger open:

https://perfht.ml/37X9vaW

No obvious winners, but memoize of getCachedResource might be one part where Debugger retains memory.

Dupe of bug 1084605 maybe? The JS engine debugger stuff holds pages alive. Bug 1084626 is one possible fix, but it broke too many devtools tests to land.

Closing the devtools frees some of the memory

Related: https://bugzilla.mozilla.org/show_bug.cgi?id=1439509.

The priority flag is not set for this bug.
:pbro, could you have a look please?

For more information, please visit auto_nag documentation.

Flags: needinfo?(pbrosset)
Flags: needinfo?(pbrosset)
See Also: → 1439509
Status: UNCONFIRMED → NEW
Ever confirmed: true
Priority: -- → P2
See Also: → 1084605
Status: NEW → RESOLVED
Closed: 4 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: