You can make a difference in the Apple Support Community!

When you sign up with your Apple Account, you can provide valuable feedback to other community members by upvoting helpful replies and User Tips.

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Web Process + Safari now hogging 50-75% more memory than Safari 5.0.5 did

Now that Apple has split Safari into two processes — Web Process (handles page loads and other traffic) and Safari (handles interface, bookmarks, history, etc) — these two processes together are using 50% to 75% more memory than Safari did before the upgrade to 5.1.


Three days ago, the most RAM I'd ever seen Safari hog (after several hours of surfing multiple tabs) was 1.1GB (still way more than it needed, once back down to 3 or 4 tabs).


Today, after surfing only an hour:


WebProcess 1.3GB

Safari 552MB


Anyone else seeing this? And anyone have ideas about limiting this memory hogging?

Macbook Pro 13, Mac OS X (10.6.4), 10.6.7

Posted on Jul 27, 2011 2:04 AM

Reply
72 replies

Sep 5, 2011 7:53 PM in response to Steven Stromer

Steven Stromer wrote:


Experiencing the same. Can't figure out what is causing the problem. Have all extensions disabled. I do have many tabs open, but 5.0.5 was able to handle the exact same tab set without such issues. It is causing my macbook pro to run 40 odd degrees hotter than usual, and for the fans to run high constantly. It isn't bad enough to cause the computer to become unresponsive, but it does create a miniscule lag on everything, and will inevitable cause damage to my hardware. I know that Apple's engineers troll these pages. Apple this needs to be resolved. For the time being, I am going to force a reinstall of 5.0.5, as per:


http://forums.macrumors.com/showthread.php?t=1192965


I downgraded to 5.0.5 using the instructions provided on the link by Steven. The process took less than 10 minutes. So far so good - no RAM issues or bugs, nor any OS issues caused by the downgrade. I've had at least 8 tabs open for a few hours and the system has not become unresponsive at any point. At the moment I have 10 tabs split over 2 open windows and Safari is using 658 MB of RAM. Prior to the downgrade it was typically using in excess of 700 MB even with just a few tabs. Other than the Reading List function in Safari I can't tell the difference between 5.0.5 and 5.1.


If any one plans to follow the steps I used, you'll find everything you need in posts #6 & #7 by 'katonah' on this link 'http://forums.macrumors.com/showthread.php?t=1192965'.


Finally, a word of caution, while I haven't noticed any issues yet there's no saying whether I will in the future, so downgrade at your own risk and read the instructions carefully before proceeding.

Sep 6, 2011 12:14 AM in response to 100 Watt Walrus

OK, Walrus, I have had the same problem, but I am sure that this phenomenon does not have the same cause in every case. In my Safari I have left only 2 extensions, Hoverzoom and Adblocker, and I have Glims with practically everything unchecked (I need it to add more search engines); When I check more features in Glims it causes problems in my case. Hoverzoom sometimes causes problems but then I throw it out for a few days and the ram eating is normal again. Adblocker has never given me a problem. What also helps in my case is turning private browsing on, but it I do not like that. I have absolutely not found (and as far as I know nobody has) a unique solution.

btw, I did not yet tried the downgrade to 5.0.5 but I have heard that it does work perfectly. But I am going to solve 5.1.... Anyhow I think we can expect an update soon..

Lex

Sep 6, 2011 1:58 PM in response to 100 Watt Walrus

Walrus, I did 1100KM by car today, and I had the following thought:

somewhere in the system (I am not sure if it is in Safari or in OSX or maybe even in Onyx) is a setting that says something like "stop safari prefetching". Since you are surfing a lot and certainly have pages with a lot of links etc, perhaps you should try if stop prefetching does help. I cannot find it where I am now. I also thought that using "private browsing" might help a bit, but maybe you do not want to loose the browsing history. Just curious, how come you use the name Walrus?

Sep 6, 2011 2:21 PM in response to Lexiepex

Some drive Lex 🙂, enjoyable I hope.


http://support.apple.com/kb/TS3408

Mac OS X steps to disable DNS prefetching

  1. Open Terminal (in /Applications/Utilities).
  2. Execute the Terminal command below to disable DNS prefetching:
    defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false
  3. Quit Safari, then open it again and test for the issue.

Sep 7, 2011 3:48 AM in response to andyBall_uk

Hi Andy,

yes enjoyable, but roads as full as in the UK, I suppose. There were several radar-armed policemen who wanted to take a photograph...😉

Yes thanks, for the prefetching memory (my memory) "upgrade"...

Walrus might first try the article changing the DNS service, then the terminal command to stop prefetching.

I have already for a long time these open dns servers in the network settings:

open preferences/network, choose the advanced/ dns tab

click +

add 208.67.222.222

and 208.67.220.220


Thanks

Lex

Sep 7, 2011 5:27 AM in response to rahul.l

Okay, i've been using 5.0.5 for a little over a day now and I don't think downgrading from 5.1 solves the problem entirely. Safari is using about 650 MB of RAM on average (I currently have 2 tabs open and it's using 676 MB); at times RAM usage has jumped up to 900 MB and then come back down. This doesn't seem right... I don't remember Safari 5.0.5 ever using over 500 MB on an average day and Firefox certainly doesn't use this much. CPU usage too seems to be a little on the higher side, but I never paid much attention to Safari's CPU usage in the past so I'm not sure.


I suspect that the initial upgrade to 5.1 might have changed something at the OS level that hasn't been entirely reversed by downgrading to 5.0.5. Perhaps, the problem is more complicated than we think and that's why Apple hasn't come up with a solution yet.


Will continue using 5.0.5 for a few more days and let y'all know if things get worse.

Sep 7, 2011 6:03 AM in response to rahul.l

Hi


5.1 didn't seem to do anything (aside from an archive of previous version) that isn't undone by installing 5.0.5, if you use the complete package & have Pacifist 'replace' everything... except for adding a presumably now redundant /System/Library/PrivateFrameworks/WebKit2.framework



5.0.x can be slightly unpredictable in memory use, I've occasionally seen 900+MB, never greater, and usually under 500, all while other users here have reported much much more

Sep 7, 2011 12:45 PM in response to rahul.l

5.0.5 did use a lot of RAM, so I'm not surprised to see reports of it using 500-900MB. But the key is that you don't also have WebProcess sucking up another gig of RAM.


I keep pretty close tabs on memory usage, and this is what I think you should expect:


Safari 5.1 using 200-400MB at any given time + WebProcess hogging up to 2GB on top of Safari's usage.


Whereas Safari 5.0.5 can use up to 900MB (if you're really taxing it), but no WebProcess, so all in all you're saving at least a 1GB whenever using Safari.


I haven't tried downgrading or turning off DNS prefetching just yet. Haven't had the time. But I will soon, I expect.


I'll try your tips Lex.

As for my screen name, I don't remember exactly how I came up with 100 Watt Walrus, but suffice it to say, I'm a very silly person who likes alliteration.

Sep 10, 2011 9:28 AM in response to 100 Watt Walrus

After years of faithful commitment to Safari, I've switched to Chrome, as I frequently keep over a hundred tabs open, and Safari 5.1 just couldn't keep up. All I can say is, I can't wait for Apple to get Safari fixed. Chrome is typical Google Garbage -- a flag planted to say they were there, with little concern for those who follow. For Safari users, there are numerous deal killers:


Opening a new tab can't take you to your preferred home page. Fortunately, there is a decent solution via extension:


New Tab Redirect!

Sets a user-specified URL to load in new tabs.

ID: icpgjfneehieebagbmdbhnlpiopdcmna



History is entirely illogically laid out. I just want a long, sequential, and complete history, as with Safari. Nothing more, and nothing less. Still haven't found history nirvana in Chrome. Another extension makes history minimally usable:


Recent History (Toolbar Icon)

This extension displays your recent history, recently closed tabs, most visited pages and recent bookmarks in a one click pop-up.

ID: milbdjfbgdilllphgdmlahonjodlfokh



Chrome doesn't provide the option for new tabs to open to the foreground. For real? Another extension:


Tabs to the front! - Version: 0.2.4

Brings newly created tabs to the foreground.

ID: hjaooagfdhdhmbfchnkhggjmacjlacla



Chrome pages up by 80% of the page, instead of by 100%, forcing you to skim through the last read paragraph to find the place where you left off. Annoying.



But, these aren't even the deal killlers.


Chrome doesn't permit the printing of background images of web pages, making many useless to print. This is scheduled to be resolved, but has been in discussion for years.


Chrome's intermittent status bar fails at its information function, is distracting, blocks page content, and is a security hole. Safari's always on or off status bar is a world better.


Chrome tabs sometimes freeze gracelessly. It is nice to have your other tabs continue to work, but often the frozen tab can't even be closed.


Chrome seems to have a thousand different preference pages, all of which are challenging to navigate, yet there are actually very few preference options available.


Even popular and well established extensions seem to freeze frequently, and often the failure of one seems to cascade across a few extensions. Attempts to relaunch crashed extensions frequently fails, as well.


Chrome uses plenty of memory. While there is no doubt that Chrome manages memory better than Safari 5.1, each open window takes up a good chunk of RAM. When added up, there is plenty getting used. Further, I experience a bouncing memory usage pattern, where every few seconds one window or another takes about 12-15% of the CPU. It has nothing to do with the loaded content in any on page. Watching individual page usage, I've closed the page that was hogging, only to discover that another page instantly becomes the new hog in town. Haven't been able to figure out what is happening during these frequent mini-peaks of processor activity.


Google is as bad as Apple at hearing customers' woes. In fact, Apple at least usually resolves issues in time, as the programmers want to make a more usable product. Google frequently never gets it right, thinking they know better than users what users want.



In summary, I can't wait for someone (maybe Apple?) to come out with a working Safari.

Sep 12, 2011 9:22 AM in response to Steven Stromer

My safari's using 3+GB after a few hours after reset. All latest software. Around 15 tabs open. 2 extensions - 1password and adblocker. There's a good site to set java-related speeds here: http://www.webkit.org/perf/sunspider-0.9.1/sunspider-0.9.1/driver.html


Mine's taking 30 seconds with extensions disabled and 20 minutes with enabled extensions, but, surpisingly, still shows the test completed as 30 seconds...

Sep 22, 2011 9:46 AM in response to 100 Watt Walrus

Mine was over 2GB yesterday ...


To me, this is just more of the same with Safari that goes back several versions and several iterations of OS X; where in a matter of hours of quite active browsing, or days; its memory footprint will just keep growing until you run out of RAM and start having lots of page outs to the hard drive and it starts to affect your whole system.


The only difference is now that there is a split between Safari and WebProcess, with the benefit that you don't have to force-quit safari and lose your windows & tabs. You can just kill WebProcess and carry on.


Sure wish they'd fix it though.


And then maybe cap it to 500MB. Nothing one browses should cause a web cache to go out of control.

Web Process + Safari now hogging 50-75% more memory than Safari 5.0.5 did

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.