Want to highlight a helpful answer? Upvote!

Did someone help you, or did an answer or User Tip resolve your issue? Upvote by selecting the upvote arrow. Your feedback helps others! Learn more about when to upvote >

Looks like no one’s replied in a while. To start the conversation again, simply ask a new question.

Massive Mountain Lion memory leak

I will start describing the problem where I first discovered it.


My early 2011 MBP had been asleep, and upon opening and waking it, it was incredibly slow. I opened activity monitor and couldn't believe my eyes.


I have 8 GB of RAM, and all but 8 mb was in use. Around 6 GB was "inactive". I had no applications running besides Activity Monitor.


I opened terminal and ran the purge command After a short wait, total memory usage was back to around 2 GB. Then right before my eyes, over approximately 30 seconds, the "inactive" memory grew until once again, I had about 8 mb of RAM free. This fluctuated a few mb, but nothing significant.


After rebooting, I opened Activity monitor again, to watch ram usage. Usage increased to a little more than 2 GB. I then launched the App Store. Before putting my laptop to sleep earlier, I had been downloading a 10 GB update to Borderlands, but had paused the download, and quit the application before closing the laptop. I hit resume download, and went back to Activity Monitor. Memory usage seemed normal for several seconds, but shortly started increasing rapidly again. I imediately hit "pause download" in the App Store. But ram usage continued rising, so I quit the application. It kept rising, until my full 8 GB was in use.


At this point I took a screenshot:

User uploaded file


The only thing I have left to tell you is that before upgrading to ML, I had previously attempted to download the same update, but hadn't had time to download the full 10 GB, so had cancelled the update. That was in Lion 10.7.4, with 4 GB of RAM, and I had no issues.

MacBook Pro, OS X Mountain Lion (10.8.2)

Posted on Sep 26, 2012 6:17 PM

Reply
Question marked as Best reply

Posted on Sep 26, 2012 6:53 PM

Your screenshot shows nothing abnormal. Having a lot of inactive memory simply means that it's been used and released. If you're curious as to what was using it, you'll have to look at All Processes, not My Processes.

120 replies

Feb 25, 2013 8:16 AM in response to imclerran

So, here's my 2 cents (or 2 pence)

I have a 27" 2009 iMac with 16GB RAM. Free Memory is just 21MB. Inactive is well over 10.5GB. Running 10.8.2

I generally have multiple chrome tabs running, word and excel, thunderbird and skype. sometimes pixelmator, dreamweaver cs5 and ocassional parallels vm.

I could close apps to free memory but no matter what, free memory will just disappear and my hard disk starts thrashing again. Only way to solve is a reboot, but its temporary as the problem could be back a week later.


I ran the page outs command and see the following for the last 15 mins.

15:54:16 pgout/s

15:55:16 22.2

15:56:16 1.4

15:57:16 44.8

15:58:16 23.9

15:59:16 0.0

16:00:16 1.7

16:01:16 6.8

16:02:16 0.0

16:03:16 0.3

16:04:16 8.3

16:05:16 26.1

16:06:16 19.4

16:07:16 0.0

16:08:16 7.1

16:09:16 51.6


So theres definately a leak somewhere.

Here's hoping 10.8.3 fixes it.

Feb 26, 2013 11:41 AM in response to imclerran

In my Macbook Pro 4GB RAM recently note memory leak when I opened Safari even with 1 or two windows open without refresh the web content.

In Activity monitor could see consume Web Content the Safari Spend more the 2 GB RAM (Memory Real become Memory Inactive)

Solution: Disable All Extensions and probe one to one. Finding that Fastesttube Extension was responsible.

Check this Info

http://atylmo.wordpress.com/2011/06/...d-fastesttube/


Best Regards

Feb 26, 2013 11:53 AM in response to purplepulser

purplepulser wrote:


So, here's my 2 cents (or 2 pence)

I have a 27" 2009 iMac with 16GB RAM. Free Memory is just 21MB. Inactive is well over 10.5GB. Running 10.8.2

I generally have multiple chrome tabs running, word and excel, thunderbird and skype. sometimes pixelmator, dreamweaver cs5 and ocassional parallels vm.

I could close apps to free memory but no matter what, free memory will just disappear and my hard disk starts thrashing again. Only way to solve is a reboot, but its temporary as the problem could be back a week later.


I ran the page outs command and see the following for the last 15 mins.

15:54:16 pgout/s

15:55:16 22.2

15:56:16 1.4

15:57:16 44.8

15:58:16 23.9

15:59:16 0.0

16:00:16 1.7

What are the units, bytes/sec, kilobytes? This is meaningless without units.

Feb 26, 2013 1:56 PM in response to Csound1

The terminal output isnt specific, but looking more at the sar command it seems the units are KB/s.


i've since rebooted so currently have normal system behaviour, but earlier today i had the problem. Essentially i have high inactive memory but hard disk constantly working throughout paging and/or swapping.

I understand that normally, inactive memory is or should act as a cache for recently used apps or data but in my case this doesnt appear to be working.

Mar 5, 2013 12:29 AM in response to Csound1

vm's aren't always a cause of.

Safari sometimes eat about ~10 GB of RAM. (from my 16).

Safari that's without addons. with 2 or 3 tabs. Opening one at 5, 10 hours.

Sometimes a couse of leaks is adium etc.

variously.


I haven't nothing oppose inactive memory, but that disk cache terminate active app to swap, if I in time don't change purge action.


alike situation is watched on ms windows (win7 as example), if you copy files under Total Commander etc. Use app that writes without a look at system specification of OS.


Google Chrome, Super Duper, carbon copy cloner etc.


For example, "Finder" doesn't create a such "problem" when you copy files under finder.


Sorry my English.

from Russia and don't know english enough. Just have simular problem.

Mar 9, 2013 1:12 AM in response to imclerran

My 2012 i7 Mac mini consistently uses about 2.5gb out of 16gb of total RAM to run just Mountain Lion with Plex Media Server in the background. My 2012 MacBook Air with 8gb RAM uses right around 1.5gb just to run the desktop. I feel like RAM usage was more efficient in Lion and definitely in Snow Leopard. I will probably be downgrading the Apple partition in my MacBook Air to 10.7 and hopefully regain some performance. The MacBook Air runs 64-bit Ubuntu EXTREMELY efficiently. Maybe the hardware isn't as restricted as it is in OS X.

Massive Mountain Lion memory leak

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