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

Aug 9, 2011 2:21 PM in response to babowa

babowa wrote:


Well, you've been fortunate. As for disk space - or mentioning a "leak" - you do know that there is a new feature called snapshots (part of TM) on laptops - makes continuous backups when not home (home meaning not attached to a TM drive) which will not be wiped until TM catches up. So it could be that is what you're experiencing.

Fortunate or the newer iMac knows (knew before Lion?) how to handle available HD space without throwing me beachballs and turning into a G3 😉.


The leak or what-ever it might be has to do with Safari and RAM, I think and not HD space available - TM and snapshots work fine on the laptop - Safari doesn't. This is something common on both machines.

Aug 9, 2011 4:06 PM in response to Michelasso

Michelasso wrote:

However this is only part of the problem. The supposed memory leak simply exposes what is possibly a bug in the memory management system of Lion. As previously discussed, the fact that by design Lion pages out instead to free [plenty of] inactive memory would be ********.

You can't tell why memory is being paged out, nor if it is freeing up memory that is immediately used by some other process, at least not with tools like Activity Monitor or iStat. If you don't believe that, do your own research. There have been several references in this long thread to the developer documentation from Apple. If that is too complicated to follow, at least check out the Wikipedia entry for memory leak.


All this "supposed" & "possibly" stuff will get you nowhere. Tracking memory management is not easy even for programmers with access to source code. Just guessing about what is happening from tools never designed to show that is futile, at least if you are looking for answers that could solve your memory use issues.


Someone asked why I keep repeating this stuff or if I think it could help. To that I ask, if you don't know what is causing a problem, how do you expect to eliminate it?

Aug 9, 2011 6:46 PM in response to mightymilk

I too am seeing Lion using all the RAM...I run Aperture 3 and have 8G of Ram on a MacBook Pro 17in...I keep the "activity monitor" running in my dock and displaying the pie chart for ram usage so I can keep an eye on it...I know Aperture is a memory hog but as you state I noticed Lion has that "web page content" which steals a lot. I did not have this issue before Lion..I do still like Lion, however. I do one of 2 things...when I see the pie chart with little green I open the activity monitor and "end task" on web content and some others I might not be using at the time...I run Parallels which is also a mem hog..


But here is one thing I just started using about a week ago and so far so good...from the App store a free download of ICleanMemory...small app and it seems to be able to find Ram that is not being used and freeing it up...you can have it run up in the top bar and just a click and another click to optimize seems to work well..


I do agree what is Apple thinking...People always talked about the system RAM windows Vista used so whay would Apple not want to avoid the same criticism

Aug 9, 2011 10:55 PM in response to Dogcow-Moof

Everyone, please read this link with the 2 posts in that link: https://discussions.apple.com/thread/3252430


I noticed that "When Safari 5.1 becomes buggy, page goes blank & spinweel starts, then I noticed in Console it creates a webprocess Spin report" and "I have noticed also that it creates a WebProcess log almost every minute. Everytime Safari lags and goes white it creates a WebProcess log."

Aug 10, 2011 1:49 AM in response to R C-R

R C-R wrote:


You can't tell why memory is being paged out, nor if it is freeing up memory that is immediately used by some other process, at least not with tools like Activity Monitor or iStat. If you don't believe that, do your own research. There have been several references in this long thread to the developer documentation from Apple. If that is too complicated to follow, at least check out the Wikipedia entry for memory leak.


All this "supposed" & "possibly" stuff will get you nowhere. Tracking memory management is not easy even for programmers with access to source code. Just guessing about what is happening from tools never designed to show that is futile, at least if you are looking for answers that could solve your memory use issues.


Someone asked why I keep repeating this stuff or if I think it could help. To that I ask, if you don't know what is causing a problem, how do you expect to eliminate it?


That doesn't matter. I am not running an enterprise server. I have only a couple of applications open with well known "standard" resource requirements that in one case (Safari) more than doubles if compared to SL.


As far as the why goes, it is indeed what we are trying to understand. What we suggest is that it shouldn't happen for the simple reason it wasn't happening before and that it has been noticed immediately. As soon as I upgraded to Lion Safari and the paging went crazy and many other people Which to me is more than a reason for Apple to look into its own code if Apple cares about its wn reputation.


Yesterday I also used "leaks", "vmmap" and "vm_stat". These are the tools suggested by Aplle itself. I've got the link straight from the Activity Monitor help page: http://developer.apple.com/library/mac/#documentation/Performance/Conceptual/Man agingMemory/Articles/AboutMemory.html#//apple_ref/doc/uid/20001880-BCICIHAB


Safari and WebProcess still using little memory were reported by "leaks" to have some small leaks. But I should try with AdBlock on to see if it reports anything more serious. More interesting has been to run "vm_stat" in my last test. It showed how starting another application (Chrome again) the free memory went down, then up getting pages from the inactive memory and paging out some stuff (only a couple of hundreds MB this time). Let's say that this time it looked more like a reasonable behaviour. Thus I will need to repeat the test hoping to reproduce the worst case when Lion pages for nothing.


Obviously we don't have the tools to dig what really is going on. And we are not the Apple developers either. But some analysis is better than no analysis at all, isn't it? Especially if we desire to report the issue to Apple. Just denying it doesn't help at all. Simply because Lion in some machines is performing much worse than Windows 7 (not to mention Snow Leopard) doing the same activities. If it doesn't happen to someone it doesn't mean no bug is there either. There are people with more Macs saying that in one Mac Lion runs flawlessly, in another it is a nightmare.

Aug 10, 2011 3:02 AM in response to Michelasso

Michelasso wrote:

Unfortunately I have a late 2006 MacBook so I am forced by the EFI32 to run


Micheal, but if you have a 2006 macbook, you have only 2Gb of memory that is not "optimal" for Lion.

So, if with 32bit kernel ad 4Gb to 8Gb the problem is resolved, it's a bug that could be corrected (i prefer to wrote MUST BE, but Apple could say that's a "by design" implementation).


So, we can just wait for 10.7.2.

If anyone has installed the beta update .2 could make some tests for us!

Aug 10, 2011 4:05 AM in response to ayrtonoc

ayrtonoc wrote:


Michelasso wrote:

Unfortunately I have a late 2006 MacBook so I am forced by the EFI32 to run


Micheal, but if you have a 2006 macbook, you have only 2Gb of memory that is not "optimal" for Lion.

So, if with 32bit kernel ad 4Gb to 8Gb the problem is resolved, it's a bug that could be corrected (i prefer to wrote MUST BE, but Apple could say that's a "by design" implementation).


So, we can just wait for 10.7.2.

If anyone has installed the beta update .2 could make some tests for us!


That's assuming he hasn't done any upgrades. I upgraded my Mid-2009 13" MacBook Pro from 2GB RAM and a 160GB HDD, to 4GB of RAM and a 500GB HDD. A lot people opt not to buy Apple upgrades because they're very expensive, instead choosing to buy the OEM hardware from companies like NewEgg for a fraction of the price and do it themselves.

Aug 10, 2011 4:25 AM in response to ayrtonoc

ayrtonoc wrote:


Michelasso wrote:

Unfortunately I have a late 2006 MacBook so I am forced by the EFI32 to run


Micheal, but if you have a 2006 macbook, you have only 2Gb of memory that is not "optimal" for Lion.

So, if with 32bit kernel ad 4Gb to 8Gb the problem is resolved, it's a bug that could be corrected (i prefer to wrote MUST BE, but Apple could say that's a "by design" implementation).

Nope, 3GB. I know, just above the minimum limit. Still it usually gives me more than 1GB of available memory (free + inactive). It pages out if that GB is mostly inactive memory. I really wonder how a brand new MacBook Air 11" with 2Gb behaves. It seems starnge to me that Apple would sell a system that has just enough resources to run the pre-installed OS.

Aug 10, 2011 4:41 AM in response to Michelasso

Michelasso wrote:


ayrtonoc wrote:


Michelasso wrote:

Unfortunately I have a late 2006 MacBook so I am forced by the EFI32 to run


Micheal, but if you have a 2006 macbook, you have only 2Gb of memory that is not "optimal" for Lion.

So, if with 32bit kernel ad 4Gb to 8Gb the problem is resolved, it's a bug that could be corrected (i prefer to wrote MUST BE, but Apple could say that's a "by design" implementation).

Nope, 3GB. I know, just above the minimum limit. Still it usually gives me more than 1GB of available memory (free + inactive). It pages out if that GB is mostly inactive memory. I really wonder how a brand new MacBook Air 11" with 2Gb behaves. It seems starnge to me that Apple would sell a system that has just enough resources to run the pre-installed OS.


I wouldn't worry about it, this is most likely an issue Apple is aware of or at least investigating. Apple is not in the business of selling an OS that doesn't run desirably. If your hardware wasn't designed to run Lion, they would make the requirements incompatible with your machine. Not to mention, we're seeing a wide variety of users affected from 2006-2011 models.


Apple do things differently than Micrsoft in this regard. Microsoft has Minimum and Recommended Requirements. Apple just has Requirements.

Aug 10, 2011 5:37 AM in response to Michelasso

Michelasso wrote:


Nope, 3GB. I know, just above the minimum limit. Still it usually gives me more than 1GB of available memory (free + inactive). It pages out if that GB is mostly inactive memory. I really wonder how a brand new MacBook Air 11" with 2Gb behaves. It seems starnge to me that Apple would sell a system that has just enough resources to run the pre-installed OS.

The MBA probably gets away with 2GB since it has an SSD. No doubt it often pages like crazy, but the speed of the SSD allows it to do so with an order of magnitude less impact than if it used an HDD.

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.