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

Jul 24, 2012 12:36 AM in response to mightymilk

my problem solved after i DELETE all my Wallpaper images !!! i think that the problem was when the OS load big images , not too big but i think that happen when the image was over 1MB or maybe 2MB , my biggest image was 8MB !!! i delete all big images and i leave only images up to 1MB and now i dont have a problem


i use 3 virtual desktops !!!

Jul 26, 2012 7:53 AM in response to makfor

I wrote this script to be run every 10 minutes via a crontab job and it solved my problems. It runs purge when free memory gets below 250MB. I get the free memory by parsing the "top" command line output.


Hope it helps.

Ilias



#!/bin/bash


MM=`top -l 1 -n 0 | awk '/PhysMem/ {print $10}' |sed s/M//g`
echo "Free Memory:" $MM

if [ "$MM" -le "250" ]; then
    echo "Free memory is running low: " $MM"MB. Releasing now..."
    purge
    exit 0
else
    echo "Memory ammount" $MM"MB does not meet purge threshold."
    exit 0
fi


To make it run every 10 minutes type in console


crontab -e


And then in the configuration file add (replace the path to the path where you saved the script (it has to be exectuable):


*/10 * * * * /Users/xxx/pathToYourScript

Aug 20, 2012 2:43 PM in response to nkko

Nothing is solved. Mountain Lion is no better than Lion. They optimized the OS for people with SSDs and those with HDD can just suck it up. I can't tell you the number of new Apple converts who started out on Lion and literally are wondering out loud where all that great software they have been hearing about went. This is an Apple disaster but they might be saved by technology if they just stops shipping HDDs as the main drive and switch 100% to SSDs in time. I am depressed about it. I bought a Mac mini at the same time as my MacBook Air. The mini is relatively unusable despite having the same amount of RAM and a faster processors.

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.