Bug 13705

Summary: High RAM usage while playing Flash videos
Product: WebKit Reporter: David Smith <catfish.man>
Component: WebKit Misc.Assignee: Nobody <webkit-unassigned>
Status: RESOLVED FIXED    
Severity: Normal CC: ap, chris.messina, mmacrelli, mrowe
Priority: P2    
Version: 523.x (Safari 3)   
Hardware: Mac   
OS: OS X 10.4   
URL: http://media.xbox360.ign.com/media/734/734817/vids_1.html

Description David Smith 2007-05-12 22:25:00 PDT
I hit 700MB RSIZE after doing "play all" on the videos at the URL, then closing all windows. It looks as though the ram usage grows steadily as the video streams, and then doesn't get returned to the system once it's done.

Using the r21432 nightly on 10.4.9/x86
Comment 1 Mark Rowe (bdash) 2007-05-13 03:35:25 PDT
I can reproduce this.  I tried in both release and debug builds of WebKit.  'leaks' indicates no leaks that it could detect.
Comment 2 Mark Rowe (bdash) 2007-05-13 03:36:02 PDT
No obviously relevant leaks I should say.  There are a few minor leaks that appear to stem from other components of the OS.
Comment 3 Mark Rowe (bdash) 2007-05-13 03:50:53 PDT
Camino seems to handle this a lot better.  Loading the first video on the page increases RAM usage by roughly 320MB, which is all deallocated once the window is closed.  In my mind this rules out bad behaviour inside the Flash plugin itself as the cause of the memory use sticking around.
Comment 4 Chris Messina 2007-10-15 23:06:55 PDT
Running Version 3.0.3 (522.12.1) I find that long Google Videos exhibit the same leaky behavior over time. In particular, I played this video for ~45 minutes and by the time I went to stop the video, my system was nearly at a stand still:

http://video.google.com/videoplay?docid=-2171306322262202538&hl=en
Comment 5 Mark Rowe (bdash) 2007-11-24 15:49:25 PST
Fixed with r28006.
Comment 6 Mark Rowe (bdash) 2007-12-10 05:23:29 PST
*** Bug 16377 has been marked as a duplicate of this bug. ***