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

Jan 5, 2012 9:50 AM in response to Allan Eckert

yeah well i guess, i guess it depends really, because when i dont have it i get mega amount of swaps used and within like an hour and a half i have to restart my laptop, but with that tweak i dont get swaps and my machine runs fine. its stupid because my sisters macbook same spec has lion on it and her macbook doesnt get sluggish at all... maybe its time i re-installed lion again without restoring it from backup.

Jan 6, 2012 11:59 AM in response to louis258

The main issue is something like this should not be neccessary in order to use OS. I'm just completely annoyed that Apple could not fix memory issues I and many users here have been complaining for more than 2 years already. The last OS X which is just worked for me were Tiger. I've skipped Leopard, and both Snow Leopard and Lion give me the same memory issues - inactive memory keep growing and once free mem is depleted, system just start swapping.

Jan 6, 2012 12:05 PM in response to BlackNova

Well, I've learned a new command, "killall Dock". Every time I come in and my iMac is bogged down, I open a Terminal, execute this command, wait a few seconds, and I'm back for a few more days. Again, this memory issue of mine, where my Dock process eats up up to 11GB of RAM, surfaced with Lion, and I've had this iMac for 3 years now. In fact, prior to this problem, I've never even had to get into any of Apple's forums.

Jan 6, 2012 1:46 PM in response to Roque Solis

Well, I think the issue is very dependant on workload. As long as I use my mac only for internet browsing, adium/skype/irc it could easily stay fine for weeks. But if I start to use it for software development - I can trigger memory issues very easy with netbeans, tomcat/glassfish, DB server running and browser running.


The main point is that OS should run without necessety of 'purge'-ing on timely basis. At least not Windows (XP, Vista, 7) nor *nixes need such a remedy.

Jan 6, 2012 4:03 PM in response to Michelasso

This might be of some use to have an easier-ish to read output of vmmap's report on a processes purgeable memory?

paste into Terminal, supply admin password for sudo vmmap to run:


for process in $(ps -A | tail +2 | awk {'print $1'} | sort -n -r); do echo PID $process: $(ps $process | tail +2 | awk {'print $5'}); echo "$(sudo vmmap -purge $process | grep -B2 PURGEABLE)"; echo; done

Jan 10, 2012 6:18 AM in response to mightymilk

I've noticed this problem not just with Safari but Firefox too under Lion. I switched to Chrome and am using the same websites and see no problems at all. Safari as well as Firefox were using up more than 1.5 GB of my RAM.

Jan 10, 2012 11:07 AM in response to Joel Bruner1

This same issue is being discussed at some length on the VMware Fusion forums and the information there suggests there is an issue with APIs that Apple provides to "watch" the contents of directories. In the case of Fusion if host file sharing is on and the contents of folders on the Mac are automatically refreshed within the Virtual Machine via the subject API then Dock memory usage grows more or less uncontrollably as described in this thread. However if the automatic refresh is disabled then the Dock does not consume memory and the behavior is not present.



I've seen it discussed that other applications that would have a use for this API can cause the same issues. Some examples are things like Dropbox or other file sharing types of things that would monitor the contents of specific folders.



From what I understand I do think the ball is in Apple's court to find out what is causing the excessive use of memory by Dock and fix it.

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.