Memory leak, I think with firefox

I am experiencing a memory lead, seemingly with Firefox.
I do not know if it is Manjaro or Firefox that is causing the leak.

The longer I have Firefox running, the more memory it uses.
When I quit Firefox and restart it, the memory goes back to where it should be.

I let it run for a while, to see how big it would get.
It got up to over 7 GB over several days.

I have Firefox set up to open the exact windows when i restart it.
So its obvious, over 7gb of system memory in use...quit firefox, restart it, with same windows open, and I am down to under 3 GB of system memory in use.

eric@c1 ~]$ inxi -Fzxi
System: Host: c1 Kernel: 5.6.19-2-MANJARO x86_64 bits: 64 compiler: gcc v: 10.1.0 Desktop: Xfce 4.14.2
Distro: Manjaro Linux
Machine: Type: Desktop Mobo: ASRock model: B450 Gaming-ITX/ac serial: UEFI: American Megatrends v: P3.50
date: 08/02/2019
CPU: Topology: Quad Core model: AMD Ryzen 5 3400G with Radeon Vega Graphics bits: 64 type: MT MCP arch: Zen+
rev: 1 L2 cache: 2048 KiB
flags: avx avx2 lm nx pae sse sse2 sse3 sse4_1 sse4_2 sse4a ssse3 svm bogomips: 59113
Speed: 1397 MHz min/max: 1400/3700 MHz Core speeds (MHz): 1: 1397 2: 1397 3: 1400 4: 1397 5: 1397 6: 1390
7: 1397 8: 1394
Graphics: Device-1: Advanced Micro Devices [AMD/ATI] Picasso driver: amdgpu v: kernel bus ID: 09:00.0
Display: x11 server: X.Org 1.20.8 driver: amdgpu,ati unloaded: modesetting resolution: 1920x1080~60Hz
OpenGL: renderer: AMD RAVEN (DRM 3.36.0 5.6.19-2-MANJARO LLVM 10.0.0) v: 4.6 Mesa 20.1.3
direct render: Yes
Audio: Device-1: Advanced Micro Devices [AMD/ATI] Raven/Raven2/Fenghuang HDMI/DP Audio driver: snd_hda_intel
v: kernel bus ID: 09:00.1
Device-2: Advanced Micro Devices [AMD] Family 17h HD Audio vendor: ASRock driver: snd_hda_intel v: kernel
bus ID: 09:00.6
Sound Server: ALSA v: k5.6.19-2-MANJARO
Network: Device-1: Intel Dual Band Wireless-AC 3168NGW [Stone Peak] driver: iwlwifi v: kernel bus ID: 07:00.0
IF: wlp7s0 state: down mac:
Device-2: Intel I211 Gigabit Network vendor: ASRock driver: igb v: 5.6.0-k port: f000 bus ID: 08:00.0
IF: enp8s0 state: up speed: 1000 Mbps duplex: full mac:
IP v4: type: dynamic noprefixroute scope: global
IP v6: type: dynamic noprefixroute scope: global
IP v6: type: dynamic noprefixroute scope: global
IP v6: type: noprefixroute scope: link
WAN IP:
Drives: Local Storage: total: 2.96 TiB used: 399.40 GiB (13.2%)
ID-1: /dev/sda vendor: Samsung model: SSD 860 EVO 250GB size: 232.89 GiB
ID-2: /dev/sdb type: USB vendor: Western Digital model: WD20SMZM-59H3FS1 size: 1.82 TiB
ID-3: /dev/sdc type: USB model: G-DRIVE mobile USB-C size: 931.48 GiB
Partition: ID-1: / size: 227.94 GiB used: 23.61 GiB (10.4%) fs: ext4 dev: /dev/sda2
Sensors: System Temperatures: cpu: 50.0 C mobo: N/A gpu: amdgpu temp: 50 C
Fan Speeds (RPM): N/A
Info: Processes: 264 Uptime: 2d 23h 38m Memory: 13.60 GiB used: 3.40 GiB (25.0%) Init: systemd Compilers:
gcc: 10.1.0 Shell: bash v: 5.0.18 inxi: 3.0.37

Be glad you do not use chrome
How many tabs are open?

I usually have 7-12 tabs open.
But the number of tabs should not effect the stability of the memory usage, having 10 tabs ope should not make it gain memory as time goes by.

Doesnt firefox not reload tabs when restarted until you click on them?
Have you made sure to 'activate' each of your tabs?

Also .. how do we know its only FF .. what is the state of your extensions?
Have you tried using a clean profile or a 'safe session' ?

How do you measure the memory used?

How do you measure the memory used?

Two ways:

I have a widget in the panel that displays it.

And I would double check with htop.

Htop would show that it was Firefox hogging the memory.

Doesnt firefox not reload tabs when restarted until you click on them?
Have you made sure to 'activate' each of your tabs?

Also .. how do we know its only FF .. what is the state of your extensions?
Have you tried using a clean profile or a 'safe session' ?

After closing Firefox and restarting it, I would go into each tab to "activate" each one.

And no, I am not sure it was Firefox that was the problem.
But htop showed that Firefox was using the vast majority of the memory.+

Ya, it could be the extensions:
Ublock Origin
Ghostery
DuckDuckGo Security Essentials
BitWarden

I am clueless.

Try starting with a safe session

firefox --safe-mode

And see if it works the same

(btw - ghostery is known to track you and serve ads from their corporate partners, etc)

Hi,
What are your add-ons ?

grep -oP '},"name":"\K[^"]+' ~/.mozilla/firefox/*.*default*/addons.json

If you want to see their memory toll, check the page about:performance

Here mine :

Capture d’écran_2020-08-06_08-57-02

As you can see, I use Ublock origin - LocalCDN - Facebook container - Site Bleacher - Clear URLs

I also went on about:config to set browser.tabs.unloadOnLowMemory to true to minimize the unused tabs memory toll (I usually have 3 separate FF instances with lots of tabs)

You can get rid of Ghostery - DuckDuckGo Security Essentials - BitWarden

If you want additional security (DoH DoT) you can also use NextDNS

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

Forum kindly sponsored by