MacOS – Mountain Lion System Freeze – Poor Memory Handling

hangmacosmemory

Useful details: Core2Duo mid 2010 Macbook Air, 128Gb SSD, 2Gb RAM.

Since I upgraded to Mountain Lion I've had this occur a few times. I'll be running my system and it'll completely freeze, no response to keyboard or trackpad other than the ability to hard power off.

In general it's when I have VirtualBox, Safari, Sublime Text 2, Terminal and Spotify running, but it'll be fine up until some unknown point and then thats it. Occasionally it'll unfreeze and I'll have messages about UI updates being suspended by (insert app here), but most of the time it forces the fans on high and starts trying to crunch on something.

Mountain Lion seems a bit snappier than Snow Leopard was for me on this machine, but it seems to be a large chunk worse for memory management, has anyone run across similar issues? Starting points for me to try optimise?

Best Answer

Since re-install Mountain Lion my system freezing very often (randomly). It seems like disk freeze for 15-30sec. I suspect some bug. But after huge effort to investigate problem I found that in my case the solution is to delete sysem logs. In terminal:

sudo rm /var/log/*

I don't know what was wrong (it was clean install of ML) but it work for me (two days until now) and looks stable.