RESOLVED WORKSFORME 51706
Huge memory leak-up to 2.3 GB RAM requirement
https://bugs.webkit.org/show_bug.cgi?id=51706
Summary Huge memory leak-up to 2.3 GB RAM requirement
david toub
Reported 2010-12-29 07:27:03 PST
Created attachment 77618 [details] Activity Monitor Within 30 minutes of using the latest WebKit build (Version 5.0.3 (6533.19.4, r74228)), my RAM usage went up to 2.3 GB, slowing my MacBook Pro to a crawl. In routine use, I have noted at least 750 MB of RAM being taken up by WebKit, and it seems to climb when doing multiple downloads.
Attachments
Activity Monitor (127.94 KB, image/png)
2010-12-29 07:27 PST, david toub
no flags
RAM requirement with r70098 after downloading 7 files (1017.33 KB, image/png)
2010-12-30 06:06 PST, david toub
no flags
Alexey Proskuryakov
Comment 1 2010-12-29 15:40:13 PST
Can you reproduce this situation? Without knowing which sites cause this, there isn't much that we can do.
david toub
Comment 2 2010-12-29 17:39:10 PST
It's been pretty reproducible just with general browsing throughout the day. This was the largest leak I've seen, and had been associated with sites such as www.huffingtonpost.com and facebook. Safari (the release version of 5.0.3) is currently eating almost 400 MB of RAM after a few hours, but WebKit clearly runs much higher.
Alexey Proskuryakov
Comment 3 2010-12-29 18:09:43 PST
Alexey Proskuryakov
Comment 4 2010-12-29 18:12:04 PST
Thank you! Do you know which nightly this started with? Could you try browsing with earlier nightlies for a while to find out?
david toub
Comment 5 2010-12-29 21:08:17 PST
It was r74228. Happy to try an earlier build. I will try r70098.
david toub
Comment 6 2010-12-30 06:04:54 PST
I can confirm the same issue with r70098. I downloaded several files > 50 MB and watched the RAM requirement creep up to over 2.5 GB of physmem and 4.25 GB of virtual memory. The biggest risk seems to be large downloads, although the RAM requirement tends to go up with simple browsing, just over a longer time horizon.
david toub
Comment 7 2010-12-30 06:06:12 PST
Created attachment 77677 [details] RAM requirement with r70098 after downloading 7 files RAM requirement with r70098 after downloading 7 files
Geoffrey Garen
Comment 8 2011-01-03 14:44:41 PST
David, now that you know that downloading large files is the key to the leak, can you test whether this is a new problem in the WebKit nightly build, by comparing the same actions in built-in WebKit vs nightly WebKit?
david toub
Comment 9 2011-01-03 14:51:35 PST
I can confirm that this is not an issue with the current release of WebKit/Safari (Version 5.0.3 (6533.19.4) There is certainly a large RAM requirement for Safari in the current version, but usually does not exceed 400 MB at one time, even with multiple downloads of large files. The WebKit nightly, on the other hand, does have this issue in my testing.
Alexey Proskuryakov
Comment 10 2011-02-14 13:53:23 PST
Could you please check recent nightly builds? We cannot reproduce this now.
Michael Saboff
Comment 11 2011-02-14 16:46:56 PST
Comments I added to the radar: Using the current ToT source code r34004/78296, I am unable to reproduce the usage described using WebKit2 (multiprocess) Safari. I have tried downloading various files including repetitive downloads of WindowsXP SP 2 bits sized 266MB at http://download.microsoft.com/download/1/6/5/165b076b-aaa9-443d-84f0-73cf11fdcdf8/WindowsXP-KB835935-SP2-ENU.exe. I downloaded this files 50+ times. I downloaded 10, 20, 50, 100 & 200MB files from http://www.thinkbroadband.com/download.html, three movies sized 15, 40, 423MB from my MobileMe account as well as viewing at least 30 HTML5 videos from http://www.dailymotion.com. Through these various tests, I could only get the Resident size to around 420MB. Note that this may include buffer space for MallocStackLogging. I believe that the issue the submitter reported has been addressed.
david toub
Comment 12 2011-02-14 17:08:21 PST
Just tested the latest WebKit version (r70098). Just loading several Web sites, no downloading of files, it went to 800 MB of RAM before freezing and I had to force-quit. I cannot state that the issue of excessive RAM usage has been fixed.
Michael Saboff
Comment 13 2011-02-14 17:11:20 PST
Could you try this with a more recent WebKit. ToT is now around r78519.
david toub
Comment 14 2011-02-14 17:26:47 PST
Each time I go to Check for WebKit Updates in WebKit, it tells me I'm up to date at r78038, and even when I go to the WebKit landing page and click "Download and Install," it gets me r78038.
Alexey Proskuryakov
Comment 15 2011-02-14 17:38:42 PST
That's correct, r78038 is the latest nightly build. It is much newer than r70098.
Alexey Proskuryakov
Comment 16 2011-03-06 01:26:37 PST
Please feel free to re-open if you can still reproduce this with a recent nightly build.
david toub
Comment 17 2011-03-08 03:35:04 PST
I have been running build r80210 and over one day, with minimal downloading, am up to 640 MB. Overall, RAM management has been better, but I'm definitely going to monitor this further.
Note You need to log in before you can comment on or make changes to this bug.