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

Safari Web Content taking 3/4 my RAM?

I have a single Safari tab open, and a subprocess called Safari Web Content is taking 1.5GB of ram.


I don't think there is any flash or anything on the page: http://explosm.net/comics/1949/


Why does Safari need so much memory? My Macbook only has 2GB in total, so everything is crawling. Is this a bug, or by design? I really like Safari and I don't want to have to switch to Chromium, but if Safari doesn't work well on 2GB machines, I guess I have no choice 😟


Version 5.1 (7534.48.3) on Lion

MacBook Pro, Mac OS X (10.6.8)

Posted on Aug 11, 2011 6:58 AM

Reply
132 replies

Jan 29, 2013 5:11 PM in response to OGELTHORPE

I have enabled the World Leaks: Check on All Builds option in Safari's Debug menu. Every time I close all Safari's windows (without quitting the program) I get a message like this:


"World Leaks: the following world leaks were detected (the check is done when all browser windows are closed): 4 JavaScript global objects. Please write a bug report about this, along with reproducible steps if possible."


The exact messages differ: sometimes it complains about some number of JavaScript global objects. Other times the complaint may be about "3 JavaScript global objects, 1 WKView object, 1 WKPageRef object, 1 WKFrameRef object".


So: if all is well, why is Safari asking me to file bug reports, and why is my system so unresponsive (and fixed simply by re-launching Safari)?

Jan 30, 2013 7:16 AM in response to ninja9578

I found in Activity monitor that Safari was using 66% of my ram. i also have 2GB. I thought this was excessive. I looked into a number of things. Then I went to Safari preferences and then to Privacy. I checked the Ask Web Sites Not To Track Me box and on Limit wecsite access to location services I checked the Deny with out Prompting Box. Checked Activity Monitor again and Safari System Memory use had dropped to 4%. After that I also disabled over 1000 cookies. Everything seems to be better and I have lots more System Memory available and I am not getting the dreaded beach ball just opening normal applications. Has anyone else tried this or know of any reason why it would be a problem to check those two boxes.

Feb 6, 2013 1:24 PM in response to kscate

I have 16 GB RAM. I closed all windows in Safari. The Swap file in Activity Monitor grew from over 16Gb to over 24GB in less than 10 minutes. Safari, with no windows open, is using 13Gb. My 2012 Macbook Pro is running very slowly. There is something wrong with Safari.



(My 13" Macbook Pro also shuts down about once a day for no reason as does my 15" Macbook Pro).

Feb 6, 2013 1:28 PM in response to Nicholas3456

Peronsally I think there is a problem with Safari, that has been ongoing and is making my MacBook and iMac both often unusable more and more and more. It is mindboggling that there has not been a fix for this. Safari web content alone on both my machines typically grows to 6GB out of 8GB of ram, and then the machines experience the requisite performance hits. Always at time when it is critical to get work done.

Feb 6, 2013 9:19 PM in response to ninja9578

Maybe if Apple is inundated with bug reports they'll give this issue some attention.


I recommend everybody do this:

First, enable Safari's Debug menu. Here's how:

  • Quit Safari
  • Launch the Terminal and enter the following command:
  • defaults write com.apple.Safari IncludeInternalDebugMenu 1
  • Relaunch Safari


Then go to the Debug menu and select World Leaks: Check on All Builds.


If your system is like mine, every time you close all of Safari's windows it will give you an error message and ask you to file a bug report at bugreport.apple.com (you need an Apple ID). Do so. And cross your fingers.


Hmm. The fact that Safari even has a debug menu must mean that it's not the most solid program.


(As usual, if you want to disable the Debug menu for any reason, use the same command as above but change the "1" to a "0". But I don't think it can do any harm to leave it enabled.)

Feb 12, 2013 1:48 PM in response to ninja9578

I am running Lion on a mac pro with 15gb ram. Safari was giving me the same problem (using crazy amount of ram). I switched to Firefox which was worse as I didn't install click to flash which I had in Safari. They both were hogging 8gb+ of ram. I am trying chrome now... In SL, the only time I maxed my ram and started paging out to VM was when using FCPX with all my regular apps open. Does Mountain Lion fix this? I believe I read other threads where ML users have the same issue. A lot of other people point to Safari 5 as the problem. I am wondering if FF shares webkit stuff with safari or if is just independently also written so poorly as a memory leach.

Safari Web Content taking 3/4 my RAM?

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