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.

Lion - Memory Usage Problems

Why is Lion using all 4GB of RAM running Mail, Safari (2 tabs), and iTunes? Snow Leopard was bad enough at handling memory, eating up every available byte and Lion seems to be arbitrarily using even more RAM. Windows 7 has zero problems handling RAM, there's no reason OS X shouldn't be able handle memory properly.


Can someone explain what Apple is doing here? I'm at a total loss. For users who just need Safari, Mail, and iTunes... I guess this works. But how am I expected to reliably run Logic, Final Cut, or Aperture with OS X using every available resource for Web Surfing, E-mail, and Music. This is totally unacceptable for a multi-million dollar software company greated towards professionals as well as consumers.


The following responses are not acceptable by the way:


  • Buy more RAM - I did that already, it will eat up 2/4/8GB, doesn't matter. Not to mention Apple still sells numerous 2/4GB confirgurations.
  • Buy a newer/more powerful Mac - this is a improper handling of memory issue, not a hardware issue.


I'd really love some insight into this. Thanks for reading.

MacBook Pro, Mac OS X (10.7), 13" (late-2009)

Posted on Jul 21, 2011 5:45 AM

Reply
957 replies

Jul 19, 2013 9:44 PM in response to BlackNova

please folks: go back earlier in the thread and read: the problem with the memory leakage in safari is JAVA. that's it. https://discussions.apple.com/thread/3193912?answerId=21421263022#21421263022


you can turn off java in safari by clicking in the menu bar on:

Safari -> Preferences -> Security


the newest versions of safari (v6.04 and above, i think) allows you to turn off java entirely or to scope which sites have which access.


my advice: turn it off or upgrade to mountain lion. the problem with safari and java memory leakage doesn't occur in the newest OS.

Jul 20, 2013 4:29 AM in response to david koff

It would be nice if that old post were accurate, but it is not. It would also be nice of memory leaks didn't exist in Mountain Lion, but they do. And in fact, where Safari is not the culprit the OS's new memory management is, and there's no getting around that other than Apple fixing it.


Regarding Safari, the only solution is to disable JavaScript, which means most of the interesting (and even many of the mundane) web pages in the world will not work anymore. Java is hardly ever the source of the problem because hardly any web pages in the world make use of Java.


The next best solution is to periodically exit the browser. In 10.9 Safari will apparently run each window in its own process, which is how Chrome has worked for at least a couple of years. That means simply that if you close your window, the memory will be freed up from whatever was going on in that window. Today, with Safari, closing the window does not free up all the memory, which is why completely exiting the browser is necessary.


BTW - periodically closing the browser, along with a whitelist cookie add-on, is the best way to maintain some semblence of privacy on the web, so that's something else to think about as well.

Jul 22, 2013 12:49 AM in response to david koff

The Lion OS X memory problem exists even if I don't use Safari or another web brouser.

Usually I opened AutoCAD and Outlook and the Lion was very slow on my MacBook Pro a1278. So what I need to do if I want to open more programs? For example Skype, Photoshop, Evernote etc.

The answer is go back to Leopard OS X. I did it and I am very satisfied. I can open all programs I need at once and browse through Chrome without any problems.

The only drawback is some programs from AppStrore don't even install because I have OS X below 10.7 version. But it doesn't bother me because I need not them for my work.

Sep 5, 2013 7:25 PM in response to mightymilk

May as well visit this again. This image illustrates silliness, foolishness, unacceptable and anything else you can think of that describes this old problem that some people here try to explain away and Apple seems to ignore.


$3000.00 for a 2013 Mac Pro 3.2 Quad (10.8.5) with just Mail, System Monitor and Safari 6.1 (extensions disabled) open and attempting to Monday Nigh Football on NBCSports.com.


Every 7-10 minutes, the feed becomes what looks like really bad stop motion photography (or like a .gif with just one frame for every 5 seconds of action). Occasionally, the system will just release everything so it can again slowly eat up all of the memory for no apparent reason. It's just appalling and I'm disgusted with Apple.


My uptime is 1 day and 4 hours. I've been watching football (attempting to anyway) for 2 hours.


User uploaded file

Sep 6, 2013 1:57 AM in response to urabus

@urabus Since this happens to you quickly and reliably, maybe you will be willing to send us another screenshot the next time it happens: activity monitor sorted by Real Mem.


I want to see which process is using up the most physical RAM. My guess is Safari but we really need to see for sure. There is probably either a bug in the thursday night football site, OR, a bug in Safari.

Sep 6, 2013 5:14 AM in response to Jonathan Payne1

I guess it could've been something with NBCSports's feed but with all the memory issues mentioned and discussed here I half doubt it. And, I will say this too: the perticular page did state that Window's users would have a "richer" experience. Still though, my my first Mac Pro in 2005 suffered from website compatibility issues everywhere you turned but the was the cost of owning a rock-solid PowerPC Mac. Issues like that are (and should be) all but gone.


If I can re-create this again, I will definitely submit a complete snapshot.

Sep 6, 2013 5:33 AM in response to mightymilk

It's a shame for Apple. They have never even acknowledges that they have a problem, and not just any problem, but the fundamental problem. How are others solved it, Windows, Linux ...? Is a memory management really so difficult task for a big company like Apple which is entangling in it for years and cannot find the way out?

Sep 6, 2013 6:55 AM in response to BlackNova

@BlackNova it is possible that when optimzing for use with SSD they actually improved the performance overall of their virtual memory system. They shouldn't have done it at the expense of all their existing hardware with HDDs in them, but it is possible the result is improved performance on SSD.


However, this has nothing to do with the fact that @urabus is running Safari and it is consuming tons of memory for one reason or another. That would have failed with Snow Leopard just as badly as it's failing now with Mountain Lion, if indeed it is Safari.


Just the other day I noticed that scrolling was very slow in safari, so I looked at its memory usage and it was 2Gb of real memory. I never (in the normal course of events) let it get that high, or even close. A quick quit and restart of Safari solved the problem. Obviously you do not want to quit/restart in the middle of watching Monday/Thursday Night Football, so it's really up to the owner of that website to fix their memory leaks in their website, OR Apple/WebKit to fix the memory leak in Safari which if indeed it is their problem.


Another alternative is just to use Chrome when watching football (and just for good measure, make sure Safari is completely exited first) and see if that helps. And if that does not help, try Firefox. Coincidentally, just today I ran into a web page that crashed (literally caused to exit with a warning window) both Safari and Chrome (which are both based on Webkit) but which worked fine with Firefox. It's worth a try.


Cheers!

Lion - Memory Usage Problems

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