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

Sep 13, 2013 9:50 AM in response to Scott Newman

I have 8GB of Ram, my useage is consistent at about 5.5GB. (This is consistent behaviour on all 5 Macs that I use)


If I only had 4GB and my useage stayed the same I would be swapping constantly. Swapping is much slower than operating from physical Ram.


So I invested in enough Ram for my useage. (And i do not allow Google's apps anywhere near the machine)

Sep 13, 2013 9:52 AM in response to Scott Newman

Scott Newman


>>I have a mid-2011 13-inch MacBook air with a 4GB of RAM and a 256GB SSD.

How much page ins and page outs do you have?


>>I do monitor free RAM and pageouts and almost never have any pagouts.

top

...

VM: 304G vsize, 1284M framework vsize, 2800085(0) pageins, 339726(0) pageouts.

...

If compare to page ins I have only 12% page outs. I don't think it's a big value.

The questions are "

Why there is such huge amount of inactive memory?

Why my macbook lag when the inactive memory squeezing out the free memory?

Why, it's inactive. It must be released.

"



Sep 13, 2013 10:37 AM in response to imclerran

I found that a try to resolve the memory management problem in this forum leads to nowhere. After tons of tons of discussions (or debates probably), one group of people keep saying that OSX is perfect and the performance slowdown is due to some st*pidness of the users or their self-created confusion, while the other group keeps complaining the terrible performance that a 2K dollar macbook should not produce. I'll not post any further discussion on this topic, and save my previous time which has been already wasted a lot by seeing that rotating little rainbow hopelessly.


BTW, if you can't bear with the paging ins and outs, open your terminal and execute "purge". It's a bad solution indeed, but it helps sometimes.

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.