Solved Firefox memory Leak?

rap33042

Senior Moment
This morning I woke my computer up (sleep mode) and was astonished to see memory usage at 54%! I have 8GB RAM and I've never seen it this high.

I checked Task Manager and saw that Firefox was using 1.8GB and still climbing; about every second it increased by a few Bytes, like clockwork.

There were also three instances of that plugin-container process. Why 3?!

I thought Firefox v4.+ was supposed to have gotten rid of their memory (leak?) problems.

Here's a snapshot and I hope somebody can give me some idea of why it's doing this. TIA!
 

Attachments

  • Capture.PNG
    Capture.PNG
    28.1 KB · Views: 127

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
Index page • mozillaZine Forums

On the right side, there are two places to enter searches, Boards and Knowledge Base. Enter "Memory Leak" and "Plug-in Container" in each of the two search boxes to find information pertaining to your questions.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz (Gateway computer)
OS
Microsoft Windows 7 Home Premium 64-bit 7601 Multiprocessor Free Service Pack 1
CPU
Intel(R) Core(TM) i5-2320 CPU @ 3.00GHz
Motherboard
Gateway IPISB-VR
Memory
8.00 GB
Graphics Card(s)
Intel(R) HD Graphics
Sound Card
(1) Realtek High Definition Audio (2) Intel(R) Display Aud
Monitor(s) Displays
ViewSonic 2250 Series
Screen Resolution
1920 x 1080 x 32 bits (4294967296 colors) @ 60 Hz
Hard Drives
(1) WDC WD10EADX-22TDHB0 (2) Generic Mini SD Reader USB Device (3) Generic USB CF Reader USB Device (4) Generic USB MS Reader USB Device (5) Generic USB SD Reader USB Device (6) Generic USB xD/SM Reader USB Device (7) Seagate FreeAgent Go
Keyboard
Gateway
Mouse
Logitech
Internet Speed
20 Mbps (Theoretical.)
Antivirus
Avast
Browser
Firefox
@Not Myself:
A lot of great information here!
Thanks!
 

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
Hello rap33042. I'll suggest you to do this in Task Manager.
View->Select Columns and there select CPU Time. After the process is started it will count a time,so you should easy know what processes and when. ;)
It should look like this:
Capture.PNG

StalkeR.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro x64
CPU
Intel Core i5 4440 @Stock
Motherboard
Gigabyte Z97 D3H
Memory
4 x 4GB HyperX Fury DDR3
Graphics Card(s)
Gigabyte GTX 1050Ti O4G
Sound Card
Integrated
Monitor(s) Displays
Dell P2417H
Screen Resolution
1920 x 1080
Hard Drives
Samsung EVO 850 120GB / Toshiba DT01ACA050 1TB 7200prm 32MB
PSU
Riotoro Onyx 750W
Case
NZXT H500 Black-Red
Cooling
Stock CPU + NZXT 120mm + 2x120mm red fans
Keyboard
Modecom Volcano Lanparty
Mouse
Asus ROG Gladius / DeepCool E-Pad Plus
Internet Speed
DOCSIS 50/3 Mbit
Browser
Google Chrome
Other Info
Asus K55VJ(i5 3210M, GT635M / 2GB, 8GB DDR3, 500GB HDD)
Hello rap33042. I'll suggest you to do this in Task Manager.
View->Select Columns and there select CPU Time. After the process is started it will count a time,so you should easy know what processes and when. ;)
It should look like this:
View attachment 151417

StalkeR.

Thanks! ;)
 

My Computer

Computer Manufacturer/Model Number
WALLONN7 / LIN BLACK SERIES II
OS
Windows 7 Ultimate x64 SP1
CPU
AMD PHENOM II X6 1090T 3.2GHz
Motherboard
GIGABYTE GA-890FXA-UD7
Memory
8GB G.SKILL RIPJAWS - F3-10666CL7D
Graphics Card(s)
SAPPHIRE ATI RADEON HD 5870 VAPOR X OC
Sound Card
REALTEK DOLBY HOME THEATER
Monitor(s) Displays
LED LG W2486L
Screen Resolution
1080p
Hard Drives
SEAGATE 1TB -ST31000528AS - AHCI MODE - AS SATA
PSU
ZALMAN ZM1000-HP 1000W
Case
THERMALTAKE XASER VI VG4000SWA
Cooling
140MM x3 / 120MM x1 AIR COOLING - THERMALTAKE
Keyboard
MICROSOFT DIGITAL MEDIA KEYBOARD 3000 - USB
Mouse
MICROSOFT BASIC OPTICAL MOUSE 2.0 - USB
Internet Speed
600KBPS
Other Info
MICROSOFT XBOX 360 CONTROLLER
^^
You're welcome! ;)
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Build
OS
Windows 10 Pro x64
CPU
Intel Core i5 4440 @Stock
Motherboard
Gigabyte Z97 D3H
Memory
4 x 4GB HyperX Fury DDR3
Graphics Card(s)
Gigabyte GTX 1050Ti O4G
Sound Card
Integrated
Monitor(s) Displays
Dell P2417H
Screen Resolution
1920 x 1080
Hard Drives
Samsung EVO 850 120GB / Toshiba DT01ACA050 1TB 7200prm 32MB
PSU
Riotoro Onyx 750W
Case
NZXT H500 Black-Red
Cooling
Stock CPU + NZXT 120mm + 2x120mm red fans
Keyboard
Modecom Volcano Lanparty
Mouse
Asus ROG Gladius / DeepCool E-Pad Plus
Internet Speed
DOCSIS 50/3 Mbit
Browser
Google Chrome
Other Info
Asus K55VJ(i5 3210M, GT635M / 2GB, 8GB DDR3, 500GB HDD)
I've started eliminating add-ons in Firefox to see if I can narrow down the culprit.

I'll let you know what I come up with.
 

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
Firefox sometimes runs for almost 1 GB of RAM on my Win 7 x64 computer.

~Maxx~

.
Win7_50.png
 

Attachments

  • 966 MB Firefox 2011-03-13_145959.jpg
    966 MB Firefox 2011-03-13_145959.jpg
    301.8 KB · Views: 40

My Computer

Computer Manufacturer/Model Number
HP HPE 270f
OS
Windows 7 x64 Home Premium
CPU
Intel Core i7 930 @ 2.8 Ghz Socket 1366 LGA
Motherboard
Pegatron Truckee v1.04E41
Memory
8 GB 1366 Mhz DDR3 (PC3-10700) RAM
Graphics Card(s)
ATI Radeon 5770 1 GB DDR5 RAM
Sound Card
Realtech High Definition
Monitor(s) Displays
32" Sony Bravia
Screen Resolution
1366 X 768
Hard Drives
Intel 25nm 120 GB Series 320 SSD HD Tune- 265 MBps Read/ 130 MBps Write

LaCie 1TB + 1TB RAID 0 eSATA Drive HD Tune- 160 MBps Read/ 90 MBps Write
Keyboard
Logitech Illuminated
Mouse
Logitech MX Revolution
Internet Speed
36.4 Mbps Maximum on a 37 Mbps Motorola SB501 Modem
All right-
I've gotten rid of the add-ons in the snapshot and it seems to have gotten rid of the memory problem.
I don't really know at this point which add-on is the problem:
 

Attachments

  • Capture.PNG
    Capture.PNG
    462.6 KB · Views: 197

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
Firefox sometimes runs for almost 1 GB of RAM on my Win 7 x64 computer.

~Maxx~

.
Win7_50.png


:what: Not even after opening about 80, 90 tabs I managed to reach 35% of it!
 

My Computer

Computer Manufacturer/Model Number
WALLONN7 / LIN BLACK SERIES II
OS
Windows 7 Ultimate x64 SP1
CPU
AMD PHENOM II X6 1090T 3.2GHz
Motherboard
GIGABYTE GA-890FXA-UD7
Memory
8GB G.SKILL RIPJAWS - F3-10666CL7D
Graphics Card(s)
SAPPHIRE ATI RADEON HD 5870 VAPOR X OC
Sound Card
REALTEK DOLBY HOME THEATER
Monitor(s) Displays
LED LG W2486L
Screen Resolution
1080p
Hard Drives
SEAGATE 1TB -ST31000528AS - AHCI MODE - AS SATA
PSU
ZALMAN ZM1000-HP 1000W
Case
THERMALTAKE XASER VI VG4000SWA
Cooling
140MM x3 / 120MM x1 AIR COOLING - THERMALTAKE
Keyboard
MICROSOFT DIGITAL MEDIA KEYBOARD 3000 - USB
Mouse
MICROSOFT BASIC OPTICAL MOUSE 2.0 - USB
Internet Speed
600KBPS
Other Info
MICROSOFT XBOX 360 CONTROLLER

:what: Not even after opening about 80, 90 tabs I managed to reach 35% of it!

That screen capture showing almost 1GB of RAM usage was taken with 1 tab open in Firefox...

~Maxx~

ShadowCopies.png
 

My Computer

Computer Manufacturer/Model Number
HP HPE 270f
OS
Windows 7 x64 Home Premium
CPU
Intel Core i7 930 @ 2.8 Ghz Socket 1366 LGA
Motherboard
Pegatron Truckee v1.04E41
Memory
8 GB 1366 Mhz DDR3 (PC3-10700) RAM
Graphics Card(s)
ATI Radeon 5770 1 GB DDR5 RAM
Sound Card
Realtech High Definition
Monitor(s) Displays
32" Sony Bravia
Screen Resolution
1366 X 768
Hard Drives
Intel 25nm 120 GB Series 320 SSD HD Tune- 265 MBps Read/ 130 MBps Write

LaCie 1TB + 1TB RAID 0 eSATA Drive HD Tune- 160 MBps Read/ 90 MBps Write
Keyboard
Logitech Illuminated
Mouse
Logitech MX Revolution
Internet Speed
36.4 Mbps Maximum on a 37 Mbps Motorola SB501 Modem

:what: Not even after opening about 80, 90 tabs I managed to reach 35% of it!

That screen capture showing almost 1GB of RAM usage was taken with 1 tab open in Firefox...

~Maxx~

ShadowCopies.png

:what::what::what::what::what::what:Just one? Just to supplement my previous post, the number of tabs that I mentioned were loaded roughly at the same time and without clearing the browser cache.
 

My Computer

Computer Manufacturer/Model Number
WALLONN7 / LIN BLACK SERIES II
OS
Windows 7 Ultimate x64 SP1
CPU
AMD PHENOM II X6 1090T 3.2GHz
Motherboard
GIGABYTE GA-890FXA-UD7
Memory
8GB G.SKILL RIPJAWS - F3-10666CL7D
Graphics Card(s)
SAPPHIRE ATI RADEON HD 5870 VAPOR X OC
Sound Card
REALTEK DOLBY HOME THEATER
Monitor(s) Displays
LED LG W2486L
Screen Resolution
1080p
Hard Drives
SEAGATE 1TB -ST31000528AS - AHCI MODE - AS SATA
PSU
ZALMAN ZM1000-HP 1000W
Case
THERMALTAKE XASER VI VG4000SWA
Cooling
140MM x3 / 120MM x1 AIR COOLING - THERMALTAKE
Keyboard
MICROSOFT DIGITAL MEDIA KEYBOARD 3000 - USB
Mouse
MICROSOFT BASIC OPTICAL MOUSE 2.0 - USB
Internet Speed
600KBPS
Other Info
MICROSOFT XBOX 360 CONTROLLER
Since installing the RAMBack extension, Firefox memory usage has stayed at about 340MB.

Thanks Mike!
 

My Computer

Computer Manufacturer/Model Number
OEM - Me
OS
Windows 7 Home Premium x64
CPU
AMD Phenom II X6 1600T
Motherboard
GigaByte GZ-990FXA-UD3
Memory
16GB PC3-10700 (1342MHz)
Graphics Card(s)
ATI Radeon 5770 HD (x2) CrossFire
Sound Card
On-board RealTek chipset
Monitor(s) Displays
3x Hanns-G 1920x1080 Monitors
Screen Resolution
3x Hanns-G 1920x1080 Monitors
Hard Drives
Intel 25-V SSD 40GB: 218 MB/s AT: 0.1ms
Intel X-25M SSD 80GB: 230MB/s AT: 0.1ms
Seagate 750GB: 133 MB/s AT: 13ms (perpendicular storage)
Buffalo HD-PCTU3 1TB External drive
PSU
OCZ Stealth X Stream 750W
Case
Cheap (unknown)
Cooling
Stock
Keyboard
HP USB
Mouse
LogiTech USB
Internet Speed
1.5 Mbps - Slow - At the tail-end of a rural network
Other Info
Printer: Epson Stylus C-84
Scanner: HP 3500C Flatbed
DVD-RW: Plextor
DVD-ROM: Unknown
WEI: 7.4
I was having this annoying problem when I was using Firefox at work. After I changed some values in "about:config", memory problems never happened again. Those values are:


  • javascript.options.mem.max: Its default value is -1, what I guess means automatic or unlimited. After some testing, I decided it's good to modify it to 50000, a value that appears to be in KBytes. Feel free to raise it to a proper value for you.
  • javascript.options.mem.gc_frequency: Its default value is 300 (seconds?). I changed it to 5. I did not realize any overhead.
After those modifications, I started to realize that Firefox released about 5 megabytes of memory every 5 seconds and never started to take all my memory again when accessing GMail (I use it during the whole day) and other sites that like to abuse of JavaScript.

I got my coworker to change this values too and he says it worked for him. It makes me think the memory leak problem is solved!

For testing purposes people can access the "about:memory" address. the "js/gc-heap" shows how much memory the JavaScript heap is using.

I hope this is useful.

Sorry for my English. It's not my native language.
 

My Computer

OS
Windows 7 32 bits

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
windows 8.1 Pro x64
CPU
intel i5 4670k @ 4.3ghz
Motherboard
asus z87-plus
Memory
16 gig ram ddr3 @ 1600 corsair vengeance
Graphics Card(s)
evga 970 GTX 4 GIG FTW ACX 2.0
Sound Card
asus xonar D2X
Monitor(s) Displays
benq gw2765ht
Screen Resolution
2560x1440
Hard Drives
Samsung 850 pro SSD 512gig - boot device wooosh
WD black cavalier 640gig WD6401AALS
Seagate 500gig ST3500630AS
WD 2TB Green WDC20EARS
2 x WD Red 3TB WD30EFRX
Samsung 750gig HD753LG - on asmedia controller
PSU
coolermaster silent pro 600watt modular
Case
fractal define R4
Cooling
artic freezer i30, 3 case fans
Keyboard
microsoft business ps2 keyboard
Mouse
microsoft optical black mouse
Internet Speed
80/20 FTTC SkyBB
Antivirus
Nod32 AV v8, HitmanProAlert, SRP, System Hardening
Browser
Chrome x64
Other Info
Intel controller is in AHCI mode currently using IaSTOR 12.8.0.1016 drivers
well hyazndey I really got my hopes up after your post because about:memory does indeed show the memory been used by js/gc-heap. However even setting the javascript limit to 50000 and the GC to 5 seconds it still goes over it.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
windows 8.1 Pro x64
CPU
intel i5 4670k @ 4.3ghz
Motherboard
asus z87-plus
Memory
16 gig ram ddr3 @ 1600 corsair vengeance
Graphics Card(s)
evga 970 GTX 4 GIG FTW ACX 2.0
Sound Card
asus xonar D2X
Monitor(s) Displays
benq gw2765ht
Screen Resolution
2560x1440
Hard Drives
Samsung 850 pro SSD 512gig - boot device wooosh
WD black cavalier 640gig WD6401AALS
Seagate 500gig ST3500630AS
WD 2TB Green WDC20EARS
2 x WD Red 3TB WD30EFRX
Samsung 750gig HD753LG - on asmedia controller
PSU
coolermaster silent pro 600watt modular
Case
fractal define R4
Cooling
artic freezer i30, 3 case fans
Keyboard
microsoft business ps2 keyboard
Mouse
microsoft optical black mouse
Internet Speed
80/20 FTTC SkyBB
Antivirus
Nod32 AV v8, HitmanProAlert, SRP, System Hardening
Browser
Chrome x64
Other Info
Intel controller is in AHCI mode currently using IaSTOR 12.8.0.1016 drivers
Why does FireFox use so much memory ? The same with Chrome it has a major memory leak. I don't like IE and with those two browsers as my only option it is really frustrating, that a browser has to page virtual memory (sometimes) Chrome is a nice browser but until they fix the memory leak issue, it falls into the same category as IE and FireFox as some great add-ons but it to as memory leak issues. When is Mozilla and Google going to finally fix these issues, they can add all the bells and whistles they want but when a browser is eating up ram that is no excuse. A browser should preform as a browser not as a power hungry app and there should be no need for extension to patch this because they are just extensions not part of the core coding of the browser.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
Custom Built
OS
Windows 10 Pro
CPU
Core2Quad (2.6 Ghz)
Motherboard
nVidia 775
Memory
8 Gigs DDR2
Graphics Card(s)
Geforce Titan Black
Sound Card
Motherboard Audio
Monitor(s) Displays
25" Asus LCD
Screen Resolution
1680x1050
Hard Drives
120 Gig SSD
60 Gig SSD
750 Gig HDD
PSU
850 Watts
Case
Mid-Size
Keyboard
Logitech
Mouse
Logitech - I love logitech mouses
Internet Speed
DSL 25Mbps - Although extremely expensive
Antivirus
Microsoft Anti-Virus
Browser
FireFox 36.x
the leak is javascript, if I disable javascript completley it doesnt happen, but of course thats not a solution as then it becomes useless as a browser.

so now I have installed noscript and testing site by site one enabled for javascript at a time, so far it seems if 'any' one site is enabled it leaks. But each site leaks at a different rate.

Given that the memory recovers on activity the bug looks to me that GC is not running when idle and waits for user activity, which to me is backwards, you would want it to run when idle and not when user activity.
 

My Computer

Computer type
PC/Desktop
Computer Manufacturer/Model Number
home built
OS
windows 8.1 Pro x64
CPU
intel i5 4670k @ 4.3ghz
Motherboard
asus z87-plus
Memory
16 gig ram ddr3 @ 1600 corsair vengeance
Graphics Card(s)
evga 970 GTX 4 GIG FTW ACX 2.0
Sound Card
asus xonar D2X
Monitor(s) Displays
benq gw2765ht
Screen Resolution
2560x1440
Hard Drives
Samsung 850 pro SSD 512gig - boot device wooosh
WD black cavalier 640gig WD6401AALS
Seagate 500gig ST3500630AS
WD 2TB Green WDC20EARS
2 x WD Red 3TB WD30EFRX
Samsung 750gig HD753LG - on asmedia controller
PSU
coolermaster silent pro 600watt modular
Case
fractal define R4
Cooling
artic freezer i30, 3 case fans
Keyboard
microsoft business ps2 keyboard
Mouse
microsoft optical black mouse
Internet Speed
80/20 FTTC SkyBB
Antivirus
Nod32 AV v8, HitmanProAlert, SRP, System Hardening
Browser
Chrome x64
Other Info
Intel controller is in AHCI mode currently using IaSTOR 12.8.0.1016 drivers
Back
Top