Firefox hogs all memory and swap
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
firefox (Ubuntu) |
Expired
|
Undecided
|
Unassigned |
Bug Description
Ubuntu 12.04 i386 on thinkpad x41
The installed firefox often hang and hog all memory and swap. Most times when a flasvideo is running, the whole computer stopped then. Sometimes it is possible to switch to a console, there after 10 minutes for login (its really that slow) TOP shows that firefox and a plugin-container process eat all ram and then all swap. After 15min or else a dialog "jscript hanging" appears on the desktop, when stopped the memory comes back. Firefox turns to normal operation until next hang.
ProblemType: Bug
DistroRelease: Ubuntu 12.04
Package: firefox 13.0+build1-
ProcVersionSign
Uname: Linux 3.2.0-23-
AddonCompatChec
AlsaVersion: Advanced Linux Sound Architecture Driver Version 1.0.24.
ApportVersion: 2.0.1-0ubuntu9
Architecture: i386
AudioDevicesInUse:
USER PID ACCESS COMMAND
/dev/snd/
BuildID: 20120601173917
Card0.Amixer.info:
Card hw:0 'ICH6'/'Intel ICH6 with AD1981B at irq 22'
Mixer name : 'Analog Devices AD1981B'
Components : 'AC97a:41445374'
Controls : 26
Simple ctrls : 18
Card29.Amixer.info:
Card hw:29 'ThinkPadEC'
Mixer name : 'ThinkPad EC 74HT26WW-1.01'
Components : ''
Controls : 2
Simple ctrls : 1
Card29.
Simple mixer control 'Console',0
Capabilities: pvolume pvolume-joined pswitch pswitch-joined penum
Playback channels: Mono
Limits: Playback 0 - 14
Mono: Playback 6 [43%] [on]
Channel: release
Date: Sun Jun 17 10:40:55 2012
EcryptfsInUse: Yes
ForcedLayersAccel: False
IfupdownConfig:
auto lo
iface lo inet loopback
IpRoute:
default via 192.168.1.1 dev eth1 proto static
169.254.0.0/16 dev eth1 scope link metric 1000
192.168.1.0/24 dev eth1 proto kernel scope link src 192.168.1.103 metric 2
Plugins:
Shockwave Flash - /usr/lib/
QuickTime Plug-in 7.6.6 - /usr/lib/
VLC Multimedia Plugin (compatible Totem 3.0.1) - /usr/lib/
DivX® Web Player - /usr/lib/
Windows Media Player Plug-in 10 (compatible; Totem) - /usr/lib/
ProcEnviron:
TERM=xterm
PATH=(custom, no user)
LANG=de_DE.UTF-8
SHELL=/bin/bash
Profiles: Profile0 (Default) - LastVersion=
RelatedPackageV
RunningIncompat
SourcePackage: firefox
UpgradeStatus: No upgrade log present (probably fresh install)
dmi.bios.date: 12/14/2006
dmi.bios.vendor: IBM
dmi.bios.version: 74ET64WW (2.09 )
dmi.board.name: 2526Y8P
dmi.board.vendor: IBM
dmi.board.version: Not Available
dmi.chassis.
dmi.chassis.type: 10
dmi.chassis.vendor: IBM
dmi.chassis.
dmi.modalias: dmi:bvnIBM:
dmi.product.name: 2526Y8P
dmi.product.
dmi.sys.vendor: IBM
I can confirm this on a fresh install of Ubuntu 12.04 64-bit: this happened to me two times within the last week already. Just before the fox goes nuts, memory usage is about 2-3G (entire system, not firefox only). And then within few seconds all RAM (8GB here) is gone, the system starts swapping, and is entirely unresponsive. It took me almost a minute from pressing Ctrl-Alt-Esc until the cursor changed to kill-mode, and almost another minute until firefox got killed then. After that, the hogged memory of course gets freed again immediately.
The first time this happened, I was just returning to my machine -- so it was idle for a couple of hours before, and I didn't touch anything: I just saw the hdd led flicker like crazy even before I turned on the monitor. The second time it happened when I opened a web page from a google search -- but only after I enabled JavaScript for that site (NoScript had blocked it before). So as the reporter indicated, JavaScript seems very likely to be involved.
One more point *may* be: It never happened to me before Firefox 13.* -- but that may very well be due to the fact that FF 12 was only running for a few days here before getting updated to FF 13 from the repos.