Closed Bug 1687951 Opened 4 years ago Closed 2 years ago

Enabling devtools sourcemaps leak 30MB per reload on cnn.com

Categories

(DevTools :: General, defect, P2)

defect

Tracking

(firefox109 fixed)

RESOLVED FIXED
109 Branch
Tracking Status
firefox109 --- fixed

People

(Reporter: jdescottes, Assigned: bomsy)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

See https://bugzilla.mozilla.org/show_bug.cgi?id=1682212#c9

Sourcemaps seem to be responsible for more than 50% of the devtools memory leak when reloading cnn.com

One of the maps from the SourceMapURLService is never cleaned: _mapsById. https://searchfox.org/mozilla-central/rev/8cb90829ccf18f95cd75d8419c84729c754a8e83/devtools/client/framework/source-map-url-service.js#29
As you navigate this map just keeps growing.

A quick test with the MBT, opening ~10 tabs, the map grew to 4000 entries. I imagine users with hundreds of tabs must have a big issue with this.

Assignee: nobody → hmanilla
Attachment #9302670 - Attachment description: WIP: Bug 1687951 - [devtools] Clear the caches for the sourcemap url service → Bug 1687951 - [devtools] Clear the caches for the sourcemap url service r=ochameau
Status: NEW → ASSIGNED
Pushed by hmanilla@mozilla.com: https://hg.mozilla.org/integration/autoland/rev/f56229fd5181 [devtools] Clear the caches for the sourcemap url service r=jdescottes
Status: ASSIGNED → RESOLVED
Closed: 2 years ago
Resolution: --- → FIXED
Target Milestone: --- → 109 Branch
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: