PDA

View Full Version : Manage memory leak?




iOrbit
Jul 11, 2012, 06:53 AM
i'v been kind of frustrated with lion's memory. i have 8GB but i still run out of memory... i use the 'purge' app which frees up the memory, but honestly, this is unacceptable way to experience the use of a computer. im tired of having to go and use these feautre and have my system lock up for a moment, its a clunky operation to do.

so im hoping someone can help me -

is this really my apps that i'v installed causing this problem? or is it lion? iv read differing arguments about this. i don't know what to conclude?

if it isn't lion, then what apps are known for causing this?

i regularly use the following apps:

App Store
Mail
Address Book
iCal
iPhoto
iTunes
iMovie
Skype
Dropbox


i want to figure out what could be causing this memory leak?

i use photoshop often as well working with some veyr large files, but is photoshop known for leaking memory?

is there any app out there which can help me figure out and tell me whats causing my memory leaks?



Weaselboy
Jul 11, 2012, 12:18 PM
You can use the Activity Monitor app from the /Applications/Utilities folder to see a list of apps and how much memory each is using.

ScoobyMcDoo
Jul 11, 2012, 12:51 PM
So, what do you mean by you run out of memory? What changes when you run the purge command?

Just asking because I find that a lot of times, folks find Activity Monitor, start looking at the memory page, have no idea how to interpret it and come away with the perception that they have a problem when they really may have no problem at all.

Personally, I have an MBP with 8GB ram - I run a lot of apps which use lots of ram. I have never ever had the need to run the purge command.

GGJstudios
Jul 11, 2012, 12:53 PM
i'v been kind of frustrated with lion's memory. i have 8GB but i still run out of memory... i use the 'purge' app which frees up the memory,
You don't need to "purge" memory. What do you mean you "run out of memory?" Mac OS X manages memory quite well, without user interference.

Mac OS X: Reading system memory usage in Activity Monitor (http://support.apple.com/kb/HT1342)

Launch Activity Monitor
Change "My Processes" at the top to "All Processes"
Click on the CPU column heading once or twice, so the arrow points downward (highest values on top).
Click on the System Memory tab at the bottom.
Take a screen shot (http://guides.macrumors.com/Taking_Screenshots_in_Mac_OS_X) of the whole Activity Monitor window, then scroll down to see the rest of the list, take another screen shot
Post your screenshots (http://forums.macrumors.com/showpost.php?p=14126379&postcount=16).

iOrbit
Jul 11, 2012, 01:07 PM
as soon as swapps start being used, its noticeable, things like launch pad, when i click it, the icons load with a lag and initially are iconless. things just become laggy the whole system.

i have to purge my system regularly to avoid it getting to swapps.

i notice for example if im using alot of tabs in safari and i close them all, safari will still be hogging up to 6 or 700 mb of memory

same with photoshop, if photoshop peaks to 2gb of memory use for example, and i close some of the files that ranked it up to that high of usage, it will still be hogging the same amount of memory. meanwhile my 'inactive memory' will build up, but os x doesnt reclaim the memory. it will only reclaim it sometimes like when i quit photoshop or safari and start it again.

some apps i think when i'v quit them, the memory is still stored as 'inactive' and swapps continue to build.

i alot of varied applications so i wonder if i have installed something that makes my experience like this as opposed to others who say they run loads of apps that use up alot of memory but they never get lagg or slow downs?

when i run the purge command my free memory is back. if i dont use purge, and the swapps start up, things get laggy. and wont become unlaggy unless i reboot.

so far then you guys have successfully made me feel that there is nothing wrong with os x, and i'm the problem.

but if thats the case, then what was all the users on google, this forum and various other places, talking about? how does my system and all their systems get this way? can you explain my experience? bare in mind i use computers for more than enough years, and i didnt resort to this on windows before.

GGJstudios
Jul 11, 2012, 01:10 PM
meanwhile my 'inactive memory' will build up, but os x doesnt reclaim the memory.
Inactive memory is the same as free memory, but with an added advantage. Purging removes that advantage.

Inactive:

This information is in RAM but it is not actively being used, it was recently used.

For example, if you've been using Mail and then quit it, the RAM that Mail was using is marked as Inactive memory. Inactive memory is available for use by another application, just like Free memory. However, if you open Mail before its Inactive memory is used by a different application, Mail will open quicker because its Inactive memory is converted to Active memory, instead of loading it from the slower drive.
Can you post your screen shots?

iOrbit
Jul 11, 2012, 01:12 PM
Inactive memory is the same as free memory, but with an added advantage. Purging removes that advantage.


Can you post your screen shots?

so why does my system resort to the swapps with the hdd when there is plenty free inactive memory, and as a result, making my system slow and an unpleasant experience? would i rather a pleasant experience, or my apps loading at the same times they do when i first opened them?

heisenberg123
Jul 11, 2012, 01:16 PM
so why does my system resort to the swapps with the hdd when there is plenty free inactive memory, and as a result, making my system slow and an unpleasant experience? would i rather a pleasant experience, or my apps loading at the same times they do when i first opened them?

maybe you have faulty RAM? even if you system info reads 8GM of Ram if you never see in activity monitor more than 4GB being used that the other 4 might be defective

backbeat
Nov 1, 2012, 04:03 PM
i'v been kind of frustrated with lion's memory. i have 8GB but i still run out of memory... i use the 'purge' app which frees up the memory, but honestly, this is unacceptable way to experience the use of a computer. im tired of having to go and use these feautre and have my system lock up for a moment, its a clunky operation to do.

so im hoping someone can help me -

is this really my apps that i'v installed causing this problem? or is it lion? iv read differing arguments about this. i don't know what to conclude?

if it isn't lion, then what apps are known for causing this?

i regularly use the following apps:

App Store
Mail
Address Book
iCal
iPhoto
iTunes
iMovie
Skype
Dropbox


i want to figure out what could be causing this memory leak?

i use photoshop often as well working with some veyr large files, but is photoshop known for leaking memory?

is there any app out there which can help me figure out and tell me whats causing my memory leaks?

iOrbit - I see your post is a bit old, but thought it would be worth responding. I have a MacBook Pro, also with 8GB of memory. It gets used quite a bit and usually I don't turn it off for many days. The memory will usually leak down at times to 2GB, and sometimes even less. I've had Dropbox for a few months but barely had more than two files uploaded, until recently. I just connected with some people and we're sharing about 30GB (shows up as about 50GB) of files. Now my usable/available disk space went from 80GB to 30GB. As for memory, when I do a fresh reboot I start with about 6.5GB or more. After less than 30 minutes, it leaks down to an unmanageable 40MB or so. I've never seen it go that low; ever, and surely not that quickly. What I don't understand when looking at the Activity Monitor, is it doesn't show a massive block of Real or Virtual memory being used. Usually I can see that Safari after many hours starts hogging a lot of memory, and I quit the app and restart. That gives me back a sizable block. Not so with what seems to be - an issue with Dropbox. If anyone has any ideas - I'm all ears. This is more than an annoyance - it renders the computer, useless. Thanks.

Backbeat

tualatinweb
Jun 20, 2013, 12:50 AM
I've owned both a 2009 MacBook Pro with 8GB of RAM and now a 2011 MacBook Pro with 16GB of RAM. Both laptops have the identical memory leak that you describe and the only work-around is to open the Terminal app and type "purge".

I run apps like:

Mail
Safari
Dreamweaver
Photoshop
Word
Excel
iTunes
Parallels (Windows 8)
Quicken (Windows 8)
Internet Explorer (Windows 8)


Throughout the day I may have to type "purge" 3 to 6 times depending on what type of work that I am doing.

I never had this memory leak issue on a PC, so am disappointed with Mac OS X.

Bear
Jun 20, 2013, 05:40 AM
I've owned both a 2009 MacBook Pro with 8GB of RAM and now a 2011 MacBook Pro with 16GB of RAM. Both laptops have the identical memory leak that you describe and the only work-around is to open the Terminal app and type "purge".

I run apps like:
...What version of OS X are you running?If you're running Lion, make sure you're updated to 10.7.5 plus the latest security patch. This fixes some OS memory management issues.

If you're running Mountain Lion, I don't think 10.8.3 has the issue, I know 10.8.4 doesn't, so update if you need to.

benwiggy
Jun 20, 2013, 06:49 AM
As previously stated, you don't have to run purge. There is no point.

If you're running a VM, and Creative Suite apps, you're going to use lots of memory.

I've run a 2009 MacBook with 6Gb of RAM, and never seen any problems. Mind you, I haven't gone looking for them. :p

tualatinweb
Nov 15, 2013, 11:58 AM
What version of OS X are you running?If you're running Lion, make sure you're updated to 10.7.5 plus the latest security patch. This fixes some OS memory management issues.

If you're running Mountain Lion, I don't think 10.8.3 has the issue, I know 10.8.4 doesn't, so update if you need to.

Bear,

I've used every Mac OS X for the past 3 years, all of them exhibit the same memory leak, where I must run the "purge" command to free up RAM each day. Today I'm using OS X version 10.9 and it still runs out of RAM with a 16GB MacBook Pro.