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 4, 2011 5:55 AM in response to Dperr23

Dperr23 wrote:


I am having a simiar problem with memory and heat on my Mac Book Pro with 2.66 Ghz Intel Core Duo processor and 4GB of memory. When I try to run Final Cut Pro X, my system becomes useless. I did not have this problem with Snow Leopard. Does anyone have anything other than add RAM?




User uploaded file

Whoa! You have 1.78 MBs per second of Page Outs! That's over 400 pages per second, which means your system is thrashing.


Things may get better if you shut down the other memory-consuming apps such as EyeConenct, EyeTV, Safari and iCamSource.


Lion uses more RAM than Snow Leopard.

Aug 4, 2011 12:17 PM in response to mightymilk

Same here.


My late 2008 MacBook worked fine with Snow Leopard and after upgrade to Lion it became more or less unusable. Today I upgraded from 2GB to 4GB and was first happy over the huge improvement.


At first I had 1GB memory free running Xcode 4, Safari and Firefox. Everything seemed to be OK.


Now, after some hours of use, the free memory has gone and I have not used the computer much. Even if I only leave it unused, the free memory decreases. I see that Safari and Firefox uses up the most memory, but this can't be the only explanation.


I've also had problems with Xcode, I've got build problems that are not due to code problems but probably due to memory problems. After reboot, the unchanged code builds like it should, without the mysterious build errors not possible to connect to the code.


There must be a serious bug in the memory management in Lion!


I can't upgrade to more than 4GB, twice as much as I had with Snow Leopard working like a charm. Although 4GB gives me some time before the memory has been eaten up, I need to reboot quite often to release memory.


I regret upgrading to Lion, I hope Apple will fix the bug(s) soon or I have to go back to Snow Leopard even though this will cost me a lot of time.

Aug 4, 2011 4:22 PM in response to Dperr23

I had previously put Mail into 32 bit mode and posted that there was no change in RAM usage but thanks to John's tip I now realise I didn't reboot. Have just quit Mail. checked the 32 bit box under Get Info, rebooted and restarted Mail. It took about 10 mins to start (35 mins yesterday in 64 bit mode). Now RAM usage has gone from 2.35GB to 1.75GB and overall RAM used 2.99GB instead of sometimes 3.99GB over the last week.


Many thanks. This looks like a temporary workaround until a fix appears as I already have the max amount of RAM (4GB) for this machine.

Aug 5, 2011 8:03 AM in response to mightymilk

Out of frustration, I started trying different solutions I already tried... and may have stumbled upon something helpful. I noticed a considerable amount of memory usage under Safari was a result of Extensions. I'm not sure if anything changed between 5.0 and 5.1 with the way Extensions are handled, but by disabling Extensions I've noticed a signifcant increase in both Performance and Memory usage. AdBlock Plus in particular had a very noticeable affect on performance and memory usage. Scrolling smoothness in particular was severely affected by this addon.


On the downside, all my memory is still consumed over time, and Inactive RAM doesn't seem to be released as the OS as needed. It's not a fix, but certainly helpful.


Extensions can be disabled via,


Preferences -> Extensions -> On/Off Switch


If you're having Safari problems and are using Extensions it's definitely worth a try.

Updating your Extensions alone may provide some relief from high memory consumption.

Aug 5, 2011 12:53 PM in response to mightymilk

After having Safari 5.1 paging like crazy many times few hours ago I went as far as totally disabling the virtual memory. I followed this hint: http://hints.macworld.com/article.php?story=201106020948369


Obviousy it's manly for testing purposes. Other than Safari now I have a Chrome session with a dozen of tabs open. Plus Mail and few small things. My total used memory is 2.3GB out of 3GB, with WebProcess + Safari taking around 530 MB (instead of 1.2 GB).


The idea is that since I saw that Safari started to page at least 1GB of memory when the free RAM was under 100MB but still having plenty (1GB or more) of inactive memory I wanna see if now will take on the inactive memory. Or crash...


Regarding the idea that OSX Lion needs at least 4GB to run I would like to remind that Apple is still selling the MacBook Air 11" with 2GB of RAM and OS X Lion (kernel running at 64 bits) pre-installed. Personally, until Safari starts to behave crazy I've seen that 3GB of RAM are more than enough for regular use. I can even run a Windows XP virtual machine on top of it.

Aug 5, 2011 1:26 PM in response to Michelasso

Michelasso wrote:


<snip>

Regarding the idea that OSX Lion needs at least 4GB to run I would like to remind that Apple is still selling the MacBook Air 11" with 2GB of RAM and OS X Lion (kernel running at 64 bits) pre-installed. <snip>

The MacBook Air has an SSD instead of a hard drive.


When the MBA pages, the Page Outs and Page Ins are an order of magnitude faster than any Mac using a hard drive. So the MBA can tolerate small RAM. Up to a point.

Aug 5, 2011 11:02 PM in response to Dperr23

MBP 15'' 2.2ghz early 2011 8gig, OS Lion installed


With Safari and Parallels (2Gig, 2 Processor allocation), all of the RAM is used up and the laptop is already paging out.


Safari is the biggest culprit. It seems that as browse more pages, the memory usage increases. I have this feeling that the safari cache is residing in the RAM rather than the HD.


This is not the case when I run Final Cut. I would have expected more resource need with video editing but it seems that safari has more needs.

Aug 6, 2011 2:40 AM in response to John Kitchen

John Kitchen wrote:


The MacBook Air has an SSD instead of a hard drive.


When the MBA pages, the Page Outs and Page Ins are an order of magnitude faster than any Mac using a hard drive. So the MBA can tolerate small RAM. Up to a point.

According to some bechmarks I checked in the past (and I double checked now. For example: http://www.barefeats.com/mbps02.html), the SSD on average are 5-10 times faster than the fastest HDD. Apple SSD in that test are even half of the speed. Fast, yes, but still much slower than the RAM speed.


But that's not the point. As many of us reported OS X Lion per se is happy with 2GB of RAM. As long as we don't run Safari. My first action after seeing that Safari was driving my poor MacBook nut has been to switch to Chrome. et voilà... Never above 2GB out of the 3GB. Unless running a virtual machine, sure. Then due to the corrupted Chrome full screen (and for investigating) I decided to switch back to Safari. That WebProcess simply is leaking. I restarted Safari last night, left the computer of and its memory usage doubled. The other Chrome session I had open since yesterday early afternoon instead is quite. Witth similar tabs open.


OSX when running Safari 5.1, sometimes suddendly decides to swap out hundreds of MB of memory. In my case up to 1.2GB. To people with higher RAM even 3GB. Even, as it happened to me yesterday, still having more than 1Gb available in inactive memory. To "buy more RAM" is not the solution and this case it doesn't seem to be either a workaround. It's also impossible for people like me that are phisically limited to 3GB. To buy a new MacBook is not an option either (and it would be a rather obnoxious thing to suggest).

Aug 8, 2011 4:48 AM in response to mightymilk

Curious to see if I solved my issue with way too much "Inactive Memory" being held and not recycled which leads to "Page-Outs" and slow-downs.


If you are having issues and have Java installed, completely disable it (uncheck every checkbox in Java Preferences) and give it a few hours.


Also, if you have Xcode installed, simply type "purge" in Terminal and it will free up "Inactive Memory".

Aug 8, 2011 4:58 AM in response to urabus

User uploaded file

This is with Safari, Mail, and iTunes open. Before disabling Java, I was getting up to 5gbs of "Inactive Memory" and 300mb of "Free Memory" after compressing a video and just these three apps open.



edit: I have not purged my memory except once yesterday morning. This is 18hrs. of uptime.


Message was edited by: urabus

Aug 8, 2011 6:03 AM in response to urabus

urabus wrote:


Curious to see if I solved my issue with way too much "Inactive Memory" being held and not recycled which leads to "Page-Outs" and slow-downs.


If you are having issues and have Java installed, completely disable it (uncheck every checkbox in Java Preferences) and give it a few hours.


Also, if you have Xcode installed, simply type "purge" in Terminal and it will free up "Inactive Memory".


Thanks for the tip, I'll try disabling Java and see what happens. The purge feature is nice, I didn't know that command extisted.

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.