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

Dec 17, 2011 11:50 AM in response to Roque Solis

Roque Solis wrote:

I don't know if it's because of my Fusion but it seems to be related. I have a Win7 (2GB RAM) vm running all the time, since I purchased my iMac 2 years ago, and I've never had to reboot because of it. I really, really hope Apple does something about this soon.

If it is caused by something related to VMWare Fusion, why should Apple be the company to do something about it? Shouldn't that be the responsibility of the company that wrote the software?

Dec 23, 2011 11:41 AM in response to erikmoust

Hi Erikmoust, I worked with the business team at Boston store on this problem. It was new to them and they actually switched out my new machine over it. In the end, even with nothing non-native loaded on the machine Safari consumed the entire 8gb of ram in about 2 minutes. It wasnt every time but at least twice a day. It seemed to especially get started when I had my.yahoo.com running on Safari but then it extended to other sites such as the Container Store and a few other news sites. We looked at flash but that didn't seem to be it. The business team there (not the geniuses) recommended that I stop opening Safari for now and use Chromw or Firefox. I have been running on Firefox for two weeks now and have not consumed all the memory. However, it is still quirky- last night I was printing a photo from iPhoto and also had a finder window open and the Inactive Processes claimed it was using 5 GB of RAM, though I couldn't see it.


I am still evaluating this MacBook because it actually runs much worse than the Lenovo PC I have with the same specs. Ironically I reboot my Mac more than I ever rebooted my PC ... And it is twice the cost. But it is pretty.

Dec 23, 2011 6:13 PM in response to mightymilk

I have a white macbook late 2006, which I had to employ a different app launching than th Dock, which was eating all the memory. I renamed the Dock.app and then I forced to quit. Since then my MB 2006 /13 machine is running like brand new under 10.7.2 . I am expecting a fix from Apple as it is not my apps that eat the memory, but the Dock.app

Dec 28, 2011 7:03 AM in response to R C-R

OK, so it's pretty clear from the posts below that it is an Apple issue. I was mentioning Vmware Fusion simply because it made sense to me but after closely monitoring the Dock process again, I've come to the realization that it's a Apple issue, whether it is with Lion or the Dock process. Although, I'm more inclined to believe that it is a Lion issue because this never happened before I upgraded my iMac to Lion, and I've had it for 3 years. THis morning I came in and my 'Dock' process was at 9.37GB of real memory. I noticed that the 'Inactive' memory in the 'Activity Monitor' was showng nearly 7GB. I started closing all of my applications, including and the 'Free' counter started to climb gradually. I left my Vmware for last, but after I shut it down the 'Free' memory counter climbed by 2GB, which is what my vm had allocated. The Dock process climbed another GB in size instead of decreasing. It just appears that Lion won't let it chew up more than 10GB, although I've seen it at 11GB before. I didn't realize that I had the option of using a different Dock application so I give it a try, although I'm hesitant to do that. I sure hope Apple gets this issue resolved quickly because I'm getting flashbacks of the Windows days when I had to reboot my PC several times a week just to get some work done, which is why I changed to Mac in the first place.

Dec 30, 2011 1:09 PM in response to Michelasso

Michelasso wrote:


Even if it is a matter of configuration files/third party application that must not happen.

Unfortunately, there is no way to prevent a poorly written third party item from using as much RAM as it can besides quitting it & making sure it doesn't restart. That may be a problem for Dock items that update their Dock icons -- as long as they are in the Dock, they will restart every time the Dock does.

Dec 30, 2011 2:33 PM in response to R C-R

R C-R wrote:


Michelasso wrote:


Even if it is a matter of configuration files/third party application that must not happen.

Unfortunately, there is no way to prevent a poorly written third party item from using as much RAM as it can besides quitting it & making sure it doesn't restart. That may be a problem for Dock items that update their Dock icons -- as long as they are in the Dock, they will restart every time the Dock does.

No matter what if the Dock is using 10GB of RAM instead of the regular 10MB the Apple developers are for sure more than willing (and interested) to take a look at it. 1000x the normal RAM usage for an OS X process is something that must be investigated in the Apple side.

Dec 30, 2011 7:17 PM in response to Michelasso

Michelasso wrote:

1000x the normal RAM usage for an OS X process is something that must be investigated in the Apple side.

It isn't that simple. The Dock doesn't live in a walled garden. It runs as a user process, just like Finder, Safari, or any other user-launched app process. All are child processes of the launch daemon started as part of the user login process by the root level launch daemon. Its behavior is controlled by a combination of system & user domain files, including the per user ~/Library/Preferences/com.apple.dock.db file (in the user's home library folder). It stores & reads data from caches, including data in a per user launch services cache folder in /private/var/.


Problems with any of these files, or with the files of running apps that implement dynamic Dock icons, can cause unexpected results, including soaring memory use.


That's part of the reason a frequently suggested user troubleshooting step is to create a brand new user account for testing purposes. If the unexpected behavior vanishes when logged into (only) that new account, you know the problem is in the home folder of the affected user.


If not, the problem still may be caused by something other than Apple's code, for example a corrupted system level file.

Dec 31, 2011 3:02 AM in response to R C-R

R C-R wrote:


Michelasso wrote:

1000x the normal RAM usage for an OS X process is something that must be investigated in the Apple side.

It isn't that simple.

That's because it might not be that simple for us that it is better to have Apple looking at it. That site is there for having general users reporting bugs. As there is an Apple Seed program where a selected small group of users test the beta releases for Apple software where Apple specifically requires the partecipants to fill as many bug reports as necessary. An Operative System is a piece of software and as any (large) software is infected by (many) bugs. I don't see what's the big deal on reporting them. It takes few minutes and Apple developers actually look at them. I know because mine about this thread subject has been working on, with the developers requesting new info and diagnose outputs few times.


Regarding a workaround there isn't any ~/Library/Preferences/com.apple.dock.db file. Actually according to Spotlight there isn't any dock.db file in the ~/Library folder at all. The only files that should configure the Dock are the following:


:Logs Michele$ ls -l ~/Library/Preferences/{,*}/com.apple.dock.*

-rw------- 1 Michele staff 215 10 Ott 17:49 /Users/Michele/Library/Preferences//com.apple.dock.extra.plist

-rwxr-xr-x 1 Michele staff 0 10 Ott 17:49 /Users/Michele/Library/Preferences//com.apple.dock.extra.plist.lockfile

-rw------- 1 Michele staff 7729 31 Dic 10:58 /Users/Michele/Library/Preferences//com.apple.dock.plist

-rwxr-xr-x 1 Michele staff 0 23 Ago 14:19 /Users/Michele/Library/Preferences//com.apple.dock.plist.lockfile

-rw------- 1 Michele staff 103 23 Ago 14:19 /Users/Michele/Library/Preferences/ByHost/com.apple.dock.0019e362f924.plist

-rwxr-xr-x 1 Michele staff 0 23 Ago 14:19 /Users/Michele/Library/Preferences/ByHost/com.apple.dock.0019e362f924.plist.loc kfile


They have all the info Dock needs. Which basically is which applications are in the Dock and to which Desktop they are associated if any. Plus other configuration parameters. It is not that complicated.


What I would do is to try trashing all of them, After having first opened the Bug Report and got an answer . They get regenerated as any plist file in the Library. The price to pay is that all Dock's icons, Mission Control and the like must be reconfigured.

Jan 3, 2012 7:26 AM in response to mightymilk

Ive had this problem even after a clean install of Lion with 4 GB ram, i found a solutuion that is quite useful http://www.icoretech.org/2011/07/how-to-recover-memory-on-mac-os-x-lion-for-free / its a really good thing to do, it purges your RAM after a certain amount of time and you can choose that time, it would freeze your Mac for like 5 seconds though, its a really good way to not worry about your inactive memory, plus if you dont like it its totally reversable🙂 give it a try.

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.