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

Safari Webpage Preview Fetcher / Safari Web content hogging RAM

hi,

recently safari started taking up more & more ram. i have a standard setup 4gb ram on 2011 macbook pro / lion os x and i am left with 5-10mb ram when opening safari = crippled system entirely. no extensions, using top sites tho. no idead how it came about, hate using ff on mac, please help

MacBook Pro, Mac OS X (10.7.3), Safari

Posted on Mar 11, 2012 7:43 AM

Reply
15 replies

Mar 11, 2012 7:56 AM in response to mdankovsky

If Safari is getting very slow:


(Presumably you regularly empty your Safari cache by deleting the following file:


Home/Library/Caches/com.apple.Safari/cache.db


and clear your History)


Adding Open DNS codes to your Network Preferences, should give good results in terms of speed-up as well as added security, (including anti-phishing and redirects) (Full information about Open DNS is here: http://www.opendns.com/home/nobloat )


If you are using a single computer: Open System Preferences/Network. Double click on your connection type, or select it in the drop-down menu, and in the box marked 'DNS Servers' add the following two numbers:


208.67.222.222

208.67.220.220


(You can also enter them if you click on Advanced and then DNS)


Sometimes reversing the order of the DNS numbers can be beneficial in cases where there is a long delay before web pages start to load, and then suddenly load at normal speed:


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


If your computer is part of a network:please refer to this page: http://www.opendns.com/start/best_practices/#your_network and follow the advice given.


If you use a Router, make sure it has the latest firmware installed.


One reason for a slowness in page loading may be the 'DNS Pre-fetching' feature of Safari 5.x as is described here:


http://support.apple.com/kb/TS3408?viewlocale=en_US


You can cancel DNS pre-fetching by going to Terminal and typing:


defaults write com.apple.safari WebKitDNSPrefetchingEnabled -boolean false


You have to restart Safari for it to take effect.


If Safari seems to hang for ages:


If you have a lot of tabs open and/or a lot of pages running Flash, Safari can sometimes 'hang', requiring a restart of Safari. This can often be inconvenient, and as it is rarely Safari itself that is hanging but merely one of its plug-ins, usually Flash, there is a way using Terminal to restart the plug-ins (without restarting Safari and losing your tabs) by quitting the WebPluginHost process:


Open the Terminal from the Utilities folder in /Applications and type

killall -9 WebKitPluginHost

Note that this command kills all Safari plug-ins, not just Flash. All plug-ins should start back up when you reload the page.

Then go back to Safari and refresh any pages that were using the Flash plug-in. This also fixes the Beachball of Death. Try this whenever Safari gets slow or freezes. The latest versions of Flash 10.1 onwards appear to have improved the situation somewhat, but haven't completed eliminated it.

For this and other reasons Apple switched their websites to HTML5 in January 2011:

http://www.appleinsider.com/articles/11/01/26/apple_revamps_its_public_website_u sing_html5.html

Jul 11, 2012 8:46 AM in response to Klaus1

This is great to know. I bookmarked this the moment I read fixes " Beachball of Death ". I have a similar issue on my Macbook 2011. Running OS X Snow Leoard and 2gb 1067 MHz DDR3, 2.4GHz Intel Core 2 Duo. Right now I'm posting this from my Macbook Pro mid-summer 2012. 8gb 1600 MHz DDR3, 2.6 GHz Intel Core i7.


The issue I'm having is occuring on my Macbook 2011 model. Right now I have Skype running with the activity monitor UI up. It's telling me I have free 7.6Mb, wired 437.1Mb, Active 1.04Gb, Inactive 533.8Mb, Used 1.99Gb. When I scroll through the activity monitor list of processes. I noticed this Safari Webpage Preview Fecther, and it's taking up 1.04 GB! First off what does this process even do and why does it take so much? Can I close this process to free up the storage? Is this cause for the hanging at all? Also my free space seems pretty dymaic now for some reason it's changing going up and down. I was wondering what causes this to happen.


I do use an app to clear my cache memory. The app is called " Clean my Mac ", and I use Sophos Anti-Virus. I recently ran a virus scan and Clean my Mac yesterday because I was a little worried my Mac may have been targeted by the " Virus " epicdemic that was suppose to happen Jul-9-2012. My virus scan came back clean, and I preceeded to clean the mac cache, and that seems to help it process at a normal speed, but I still get these occassional hangs from time to time, and I would like to get to the bottom of it. Any help will so much appreciated.


Thank You

DeJuan Stephens


Message was edited by: DeJuan_5050_Stephens

Jul 20, 2012 7:28 PM in response to mdankovsky

If you find you don't really rely on Top Sites but are uncomfortable with using Terminal commands and changing DNS numbers (some people are), you can isolate Top Sites within the normal Safari Preferences. I personally find Top Sites about as useful as alunimum siding on a brick house, so I isolate it via these steps.


1) In Safari > Reset Safari... check the following boxes:


---Reset Top Sites

---Remove all Webpage Preview Images


then hit Reset.


2) In Safari > Preferences > General tab, find these two entries:


---New Windows open with:

---New Tabs open with:


and select anything but "Top Sites."


3) In Safari > Preferences > Bookmarks tab, for "Bookmarks Bar," uncheck "include Top Sites" to remove its icon from the bookmark bar, That keeps curious visitors from invoking Top Site by clicking an icon.


The TS function is still there if you need it in the future and can be reactivated quickly. All you're doing with the above actions is clearing existing images and hiding the "switches" that cause the Fetcher to activate.

Jul 21, 2012 8:24 AM in response to Neville Hillyer

It works on the Fetcher side which, for me, was the big hitter in the Safari performance issue.


I have used the above technique since Top Sites first appeared in Safari and at least the Fetcher never shows up in Activity Monitor set to show "All Processes." I've set it up that way on a number of new and older Safari-capable Macs and it's worked on all of them. They now show normal RAM usage and completely acceptable speed with stability.


I find no issue with what you posted. However, sometimes people here need an option that is less daunting. That's why I posted it. Why not give it a try to see what you find.

Jul 21, 2012 1:05 PM in response to Neville Hillyer

Neville Hillyer wrote:


I think you want this Terminal command:


defaults write com.apple.Safari DebugSnapshotsUpdatePolicy -int 2



Hi Thanks for this - my Safari Fetcher process ( in fact two ) were about 100% each - Ive run this terminal command as you suggested and now everything seems just fine - Could I ask if you could explain a bit more what this does - ie Have lost any functionality ?


Thanks


K

Jul 21, 2012 3:05 PM in response to Kwales66

The site I got it from said the only downside was loss of Top Sites - my Safari was faster after the command - there is a way to reverse it if necessary.


Apple now has a way to update preferences over the web without telling you - not sure how often it is done but the method exists and is installed - I could probably find details and a fix to stop this - downside is that it will be the same for all applications.

Nov 29, 2013 1:26 AM in response to mdankovsky

it will probably be a bad webpage that Safari is trying to preview.


Normally the preview fetcher will update the previews very quickly in the background, and you don't even notice.


But if it gets hung up on a page on your top sites screen, the preview fetcher goes nuts and takes all the processor it can get.


Edit the top sites page and delete a whole bunch of previews. You'll end up finding the one that's causing the problem.

Apr 7, 2014 4:04 PM in response to mdankovsky

For those visiting this thread in 2014.

I cannot find anything relating to Mr Jones' entry 20Jul12 as, "3) In Safari > Preferences > Bookmarks tab," in Safari 7.0.2.

I did find "Safari > Preferences > General tab," a reference to "Top Sites shows:" and a selection pull-down the allows only "6"(default), "12", & "24" without any "None" or "Disable" or any such blank input for top sites nor reference to "provate Browsing" and it's relationship, if any.

The only other mention of Top Sites found in Safari > Preferences > Advanced > was related to whether Bonjour was to be included in Bookmarks menu or Favorites bar.

I still have the same problem of Safari hogging memory and openig REALLY SLOW or causing the rest of login to take forever. When it opens first thing it hogs nearly 2 GB leaving only 15 MB to 40 MB of "Free" memory for other programs. I am forced to run MemoryClean.app to retreive the space with every start or user fast switch or my patience os so worn by the end of defining a new user space I give up and go for coffee to return 10 minutes with sleep and login to deal with a second time.

Safari Webpage Preview Fetcher / Safari Web content hogging RAM

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