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

Oct 23, 2011 3:05 PM in response to Dogcow-Moof

I never said there wouldn't be a tradeoff. The fact that folks can't upgrade past 4Gigs of RAM in the first place makes it that having a 64Bit application on that machine useless since it should never really be trying to grow past the 32bit address space. If you had say 6+Gigs of RAM I can see how that might be a problem. In this case it seems like Lion is just generating a massive virtual file and it's causing some really heavy swap when in 64bit. Dumping it down to 32bit simply tells OSX you don't want to use more than that. Sure you can end up with more pagination if there is something trying to grow higher, but the mere fact that you have it set to 32bit tells the app to never grow past 3.5Gigs (500MB reserved for system as you already know I'm sure).


I think the implication on a system that CAN'T go above 4Gigs in memory is probably non existent. I'd love to see some technical white paper on why I'm wrong here.


R

Oct 23, 2011 3:09 PM in response to bazokajoe_2k

So I'm looking at your screen shot. Yes Safari is suing 2Gigs of RAM, but really: So what?


In your case you have 8Gigs of RAM, no other applications currently needs the RAM and more importantly your page outs are at 0. That means that the OS hasn't had to move memory in and out of swap because it's trying to juggle the additional memory when you switch applications. I'd leave it where it is if I were you Joe and not sweat it.


Are you experiencing a slow down? If so, what are you running when you see it? Is that the exact configuration? If so it's not a memory issue slowing you down, there's some other plugin kicking safari in the tail. I'd turn off extensions and see if it helps.


R

Oct 23, 2011 3:09 PM in response to RobertSfeir

RobertSfeir wrote:


I think the implication on a system that CAN'T go above 4Gigs in memory is probably non existent. I'd love to see some technical white paper on why I'm wrong here.



Mostly because it's not just a matter of supporting 4 GB of physical addresses (4 GB of RAM) but you're also forcing addresses to always be below 4 GB in the virtual address space.


So for example, there's no reason an app can't use virtuall address 0x200000000 even if you only have 2 GB of RAM, but when run in 32-bit mode you're explicitly telling the system not to allow that, so it may need to shuffle different bits of the app as needed to keep virtual addresses below VA 0x100000000.

Oct 23, 2011 3:18 PM in response to TheSmokeMonster

It normally doesn't, but from what I've seen and others have reported, apps like Safari gobble up tons of RAM when running in 64bit mode (regardless of the amount of RAM you have available) effectively slowing down the whole machine and rendering it unusable. Switching safari to 32bit drops the memory usage considerably, and enables folks to be able to use their machine normally.


Again I'm not saying this is the end all be all solution, but for folks that are getting hammered by this problem, switching an app to 32bit solves the issue if only temporarily until there is (we hope) a fix from Apple.


R

Oct 23, 2011 3:22 PM in response to RobertSfeir

Thanks for the response, Robert. It isn't a problem...yet. It's the weekend and I'm not dealing with my heavier work. I just upgraded to 8GB because I was -constantly- out of memory @ 4GB. I'm talking 3-4GB of page outs over just an hour or two. It was pretty ridiculous.


I worry with such large sizes because Lion seems to have a habit of making memory inactive, not free, which means I would have significant issues down the road. The other part is that 2.5GB is where I stopped it. Whatever the reason it would take up that much space means that it wasn't going to just magically stop. Then I would have a big problem.


Lastly, simply because my computer has enough memory to deal with it, it doesn't excuse sloppy programming. There is absolutely zero reason a web browser should be taking up that much memory. Absolutely none. I'd rather that memory be available for Aperture or Photoshop than being taken up by 3 tabs in Safari.


I've had Safari open for about 4-5 hours now and it's hovering around 500mb of memory used, but I haven't been doing much with it, either.


Any way you cut it, as soon as a web browser starts using more than 1GB of memory with just a few tabs open, you have a big problem. Because I've beefed up my system to not be bogged down the problem doesn't remove the importance of the problem being fixed.


It's like having a bad leak through your basement foundation and saying that because you cut a small channel from the leak to the drain so it doesn't flood the basement that's a good fix.

Oct 25, 2011 6:10 AM in response to bazokajoe_2k

If Steve was alive right now and received many complaints, he would be saying the following at his Apple Safari team:


"Can anyone tell me what Safari is supposed to do?" Having received a satisfactory answer, he would continue and say, "So why the **** doesn't it do that?"



Everyone having Memory problems should create an Apple Bug account and report it NOW to Apple at https://bugreport.apple.com


DON'T COMPLAINT ONLY HERE IF YOU DON'T TAKE THE TIME TO COMPLAIN TO APPLE ABOUT IT.


Imagine if 500 people created an account and report this issue. Do you think Apple will not fix it ASAP ?


WAKE UP PEOPLE !

Oct 25, 2011 6:41 AM in response to stamatgeorge

Hi,


Keep waiting for somebody else to mention Mail. Even running it in 32-bit mode it takes up 3.7GB of my max 4GB RAM on my MacBook Pro. I need to feel better that there is somebody else out there with the same problem.


From all these posts I run Firefox and dare not run Safari.


I can hardly run Word at the same time and I CAN'T TAKE IT ANY LONGER!!!!!!

Oct 25, 2011 6:56 AM in response to stamatgeorge

Thanks for the relativley tasteless post.


You assume that people haven't. I have. Posting about it here helps see if there is a crowd-sourced solution to a problem, which can be quite helpful.


I'm certain Apple is aware of and working on the problem; they've hit hiccups in the conversion to 64-bit w/sub-processes for sandboxed tabs, quite obviously. It's just a shame because I can't stand other browsers...

Oct 26, 2011 4:29 AM in response to stamatgeorge

stamatgeorge wrote:

Everyone having Memory problems should create an Apple Bug account and report it NOW to Apple at https://bugreport.apple.com

I did. Actually more as an OS X memory management problem. And I've got some follow ups from Apple developers. My issue (huge swapping activity) apparently has been fixed in 10.7.2.


But I also know of other people that opened a Bug Report about Safari being a memory hog. The same BR have been closed as "working as designed". Apparently Safari seems to keep in memory part of all pages loaded since when it started. For example that should be why it remembers about the position in the previous pages and (sometime) the text we input in others. To me the cost in terms of RAM of those features is way too high. True, one can always restart Safari (and I do), but I would't mind an option to disable that kind of caching. When going back to a previous page it can still take seconds to load, so I don't see much benefits.


BTW there is no need to yell.

Oct 28, 2011 1:53 AM in response to Michelasso

Ok so most of these replies have been focused on safari hogging memory. This isnt the case on my end. When I'm done doing my online classes and homework for the day I hop on wow. Here's the issue I'm having to restart my MBP after five hours of usage to dump whatever is taking up the space on my ram.


I opened up the activity tracker and it shows wow using up 1.73 gigs of ram? I don't see where else the memory is going. Because hovers at 1.73 and doesn't budge. So after about 4-5 hours today I was down to 22 mbs of ram and can't figure out why. Wow didn't change it's consumption of memory used either.


Going to put in a help desk request and see what they tell me.

Oct 29, 2011 9:40 AM in response to John Kitchen

Using Lion on 17" MacBook Pro -

I don't know about MDS - don't know what it is - but after seeing available HD space disappear gradually down to nothing when using computer - I tried all sorts of disk cleaning utilities - and have found that ---- AT THE LEAST --- gian swapfiles are engulfing the var/vm folder, taking up that HD space.


I read elsewhere that this is a Safari memory management problem.

Is it also MDS, whatever that is?


Is there a solution?


Sometimes restarting or doing shutdown and restart helps.

Sometimes the same HD space remains disappeared.


HELP!


David

david@ferleger.com

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.