Runaway memory leak every 24 hours
Categories
(Core :: Performance, defect)
Tracking
()
People
(Reporter: maltesaa, Unassigned)
Details
User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:133.0) Gecko/20100101 Firefox/133.0
Steps to reproduce:
I have been experiencing a runaway memory leak with Firefox for the better part of a year now. Every 24 hours it starts leaking memory until Firefox is killed by my OS.
Steps to reproduce my most recent install of Firefox:
- Uninstall Firefox and remove all profiles
- Install Firefox and setup a new profile with the betterfox user.js
- Install addons:
2FAS,
Bitwarden,
ClearURLs,
Dark Reader,
LeechBlock NG,
Reddit Enhancement Suite,
SponsorBlock,
uBlock Origin,
Violentmonkey,
Yomitan - Open YouTube, Google Sheets and Bookmeter
Actual results:
A runaway memory leak happens after almost, if not exactly 24 hours. Some logs from earlyoom which shows it killing Firefox due to high memory usage:
dec 21 17:36:50 -pc earlyoom[874]: sending SIGTERM to process 35260 uid 1000 "firefox": oom_score 1102, VmRSS 21019 MiB, cmdline "/usr/lib/firefox/firefox"
dec 22 17:43:35 -pc earlyoom[874]: sending SIGTERM to process 140061 uid 1000 "firefox": oom_score 1033, VmRSS 16120 MiB, cmdline "/usr/lib/firefox/firefox"
dec 23 17:46:21 -pc earlyoom[942]: sending SIGTERM to process 2616 uid 1000 "firefox": oom_score 1070, VmRSS 18752 MiB, cmdline "/usr/lib/firefox/firefox"
dec 24 17:52:14 -pc earlyoom[942]: sending SIGTERM to process 111863 uid 1000 "firefox": oom_score 1092, VmRSS 17799 MiB, cmdline "/usr/lib/firefox/firefox"
It takes me a few minutes to notice that its been killed which is why it happens a bit later each day. I'm pretty sure it happens every 24h exactly.
I've experienced this on both Windows 10 and Linux (Debian, Fedora and Arch), across multiple Firefox profiles and installations and with different addons enabled and disabled.
From what I've seen, it's a youtube tab which is leaking memory.
None of my Violentmonkey scripts are active on youtube, I have however tried disabling Violentmonkey but the memory leak still persists.
I have managed to create a memory report before but have since then lost it, I will see if I can create one tomorrow, if so I will add it.
Expected results:
Firefox should not have leaked any memory.
Comment 1•2 months ago
|
||
The Bugbug bot thinks this bug should belong to the 'Core::Performance' component, and is moving the bug to that component. Please correct in case you think the bot is wrong.
Comment 2•2 months ago
|
||
This bug was moved into the Performance component.
:maltesaa, could you make sure the following information is on this bug?
- For slowness or high CPU usage, capture a profile with http://profiler.firefox.com/, upload it and share the link here.
- For memory usage issues, capture a memory dump from
about:memory
and attach it to this bug. - Troubleshooting information: Go to
about:support
, click "Copy raw data to clipboard", paste it into a file, save it, and attach the file here.
If the requested information is already in the bug, please confirm it is recent.
Thank you.
Still trying to get the memory report. It seems like the memory leak only occurs when firefox is either not in focus or is minimized. Every time that I have been waiting for it to happen it hasn't happened, but when I minimize firefox or go AFK it happens...
Description
•