Closed
Bug 614687
Opened 14 years ago
Closed 12 years ago
High memory use (along with CPU spikes/hangs) after browsing YouTube for a while
Categories
(Core :: JavaScript Engine, defect)
Tracking
()
RESOLVED
WORKSFORME
People
(Reporter: danne.da, Unassigned)
Details
(Keywords: perf)
Attachments
(2 files)
User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101124 Firefox/4.0b8pre Build Identifier: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.6; rv:2.0b8pre) Gecko/20101124 Firefox/4.0b8pre If browsing for a long period of time Firefox memory usage goes up quite high, upwards of over 1 GB. When this happens the idle CPU usage is quite high, around 20% on my system (Late 08 15" MBP, 2.4 GHz, 4GB RAM), with spikes going up to around 50-55% every few seconds, making Firefox appear to hang. I believe I managed to grab a process sample of the CPU spike, which I'll attach to the bug, maybe it'll show something that could've cause it. Before I grabbed the sample I was watching the memory usage of Firefox and it went from ~780 MB to ~850 MB several times when the CPU usage spiked, however this stopped happening before I grabbed the sample. Memory usage remained at the ~780 MB level. I can only confirm seeing this when the memory usage slowly goes up, never having more than 5 or so tabs open at a time. Because it takes several hours for the increase in memory usage to appear I haven't been able to link it to any single site or sites. Sometimes the memory usage remains below 400 MB even if I've been browsing for hours. Running 10.6.5 with Flash version 10,1,102,64. Firefox running in 32bit mode, but I've also seen it in 64-bit mode. Reproducible: Always
This should be a sample of the CPU usage spike, if I managed to time it correctly.
Updated•14 years ago
|
Status: UNCONFIRMED → NEW
Ever confirmed: true
I've managed to reproduce it at will by watching a bunch of videos on YouTube. After watching a bunch of videos the memory usage will climb to something like 800-900 MB, and the CPU spikes will begin. It doesn't matter if you close all tabs and clear the cache, the spiking will continue.
I definitely see this when I open or refresh the following page: http://crash-stats.mozilla.com/report/index/fb73ed65-3efc-4367-8de6-033882101125
the code in question is probably JIT / gc
Assignee: nobody → general
Component: General → JavaScript Engine
Product: Firefox → Core
QA Contact: general → general
Version: unspecified → Trunk
Comment 5•14 years ago
|
||
Comment 1 looks like it hits breakpad (which is the crash reporter I think) and possibly doing code traces? Anything cairo related looks like graphics, painting, hw acceleration, etc. Also try looking at about:memory and about:graphics to see what its set at.
Comment 6•14 years ago
|
||
(In reply to comment #5) > about:graphics to see what its set at. Er, about:support graphics section I mean to see if your running HW acceleration. I'm not sure how OOP works on OSX, but its about the out of process plugins, and if your doing flash, chances are your painting, your filling up memory and have network traffic.
Comment 7•14 years ago
|
||
Nothing breakpad in there. Some cycle collector, which makes sense given the other symptoms: sounds like you're leaking somewhere, and then the cycle collector keeps trying to collect all that leaked gunk.... Benjamin, do we have known leak (possibly for process lifetime!) bugs with youtube flash stuff?
Here's another sample run for 10 seconds, with an interval of 1ms of runtime between samples. The cpu spike runs for about 1.5-2 seconds with at an interval of about 8 seconds. Memory stats: Description Value malloc/allocated 466,752,880 malloc/mapped 540,954,624 malloc/zone0/committed 466,770,320 malloc/zone0/allocated 536,760,320 xpconnect/js/gcchunks 72,351,744 images/chrome/used/raw 0 images/chrome/used/uncompressed 329,444 images/chrome/unused/raw 0 images/chrome/unused/uncompressed 0 images/content/used/raw 6,396,562 images/content/used/uncompressed 44,473,174 images/content/unused/raw 0 images/content/unused/uncompressed 0 storage/sqlite/pagecache 20,002,368 storage/sqlite/other 1,479,272 layout/all 1,166,559 layout/bidi0gfx/surface/image 47,956,660 shmem/allocated0shmem/mapped 0 content/canvas/2d_pixel_bytes 0 Graphics stuff: Adapter Description 0x22600,0x22600,0x20400 Vendor ID 2600 Device ID 2600 Adapter RAM Adapter Drivers Driver Version Driver Date Direct2D Enabled false DirectWrite Enabled false GPU Accelerated Windows 1/1 OpenGL I'm on a Late 2008 MacBook Pro running the 9400M 256 MB graphics.
Comment 9•14 years ago
|
||
I don't know of any long-term leaks related to Flash stuff, no. That doesn't mean they don't exist, of course!
Comment 10•14 years ago
|
||
That last sample shows us mostly idle; maybe 10% of the time the CPU is busy. I guess that makes sense given the other numbers. The 10% is mostly cycle collection and painting. Jesse, want to try doing some of your lifetime-leak detection on youtube?
Comment 11•14 years ago
|
||
My tool isn't detecting any obvious lifetime leaks after clicking around on YouTube. (Mac OS 10.5.8, Flash 10,1,102,64, Firefox from mozilla-central cd392793b0c0+)
Summary: CPU usage spikes and high memory usage causing Firefox hang every few seconds → High memory use (along with CPU spikes/hangs) after browsing YouTube for a while
Comment 12•14 years ago
|
||
Reporter, just to check... do you have any extensions installed?
Reporter | ||
Comment 13•14 years ago
|
||
I've got a few extensions disabled and earlier today I tried to disabled all of them using "Restart with Add-ons Disabled...". I was unable to get the memory to increase to more than ~350MB, however the plugin-process came up to about ~300MB, previously it had only stayed at ~70MB regardless of how many YouTube videos I had watched. I re-enabled all extensions one-by-one to find which one was causing the CPU to spike but were unable to find it. With all extensions enabled the CPU spiking is gone. Anything I'd need to re-enable other than extensions after I used "Restart with Add-ons Disabled..."?
Comment 14•14 years ago
|
||
The effects of "Restart with Add-ons Disabled" should be temporary, in that restarting again should get you a normal Firefox session.
Reporter | ||
Comment 16•12 years ago
|
||
I haven't seen this for a long time. With a bunch of add-ons enabled (noscript, tab mix plus, scriptish, adblock plus), I rarely see Firefox memory usage go above 400 MB, after watching 20+ videos in a playlist, the Flash plugin goes up to 150ish MB. I'm setting this as WFM.
Status: NEW → RESOLVED
Closed: 12 years ago
Resolution: --- → WORKSFORME
You need to log in
before you can comment on or make changes to this bug.
Description
•