M
M
m5xim2021-01-13 17:16:46
Mozilla Firefox
m5xim, 2021-01-13 17:16:46

Firefox tab with open developer tools after a while takes more than 1 GB of RAM, how to limit?

Good afternoon.

A question for web developers / layout designers, tell me who has come across:
if you open the developer tools in the Firefox tab and reload the page or follow the links n times, then Firefox starts consuming an insane amount of RAM, but as soon as you close this tab (and open devTools in new) then the memory is immediately cleared, you have to do this from time to time. 1-2GB for one tab is too much (IDE eats so much, as it should be). What was done:
screwed the following settings in the config

browser.cache.offline.capacity 512000 => 512
browser.cache.offline.enable true => false
image.cache.size 5242880 => 242880
image.mem.surfacecache.max_size_kb 2072576 => 72576
media.cache_size 512000 => 512
media.memory_cache_max_size 8192 => 192
network.buffer.cache.size 21768 => 768
devtools.performance.memory.max-log-length 125000 => 1250

This helped, because before that, it took even more RAM, but there is still a problem, maybe someone has come across it, tell me what other parameters in the config can be tweaked

UPD: This is a well-known Firefox bug that has been around for a long time https://bugzilla.mozilla.org/show_bug. cgi?id=1682212

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question