and for the sake of solid accounting, i'm running:
OSX 10.7.2 and beyond (we may or may not be in the dev program)
Mac Pro tower
Java SE6 r41
much obliged if each of you who post would also specify your java version as well...
Mon 4 March 2013: 3 55 pm
Thanks for your post, David.
@all, if you need to figure out which version you are running, open Terminal (found in Applications/Utilities) and type the following:
It'll return the version like this:
java version "1.6.0_41"
It's really a good idea not to be allowing Java to run in your browser at the moment as there have been several security issues. I've not heard any updates for a week or two, so maybe that's been cleared up, but either do your homework to be sure, or turn it off in Safari.
That said, there was just a JVM (Java Virtual Machine) update a day or two ago.
Following David's advice and posting your results will contribute to this thread and to those attempting to address memory problems in Lion and/or Mt. Lion.
Turning Java on or off has no effect.
The thing is, I've been using chrome. Yet, every day when I get home from work at 3:30, the safari program consumes 12+GB of data.
This is absurd. Why hasn't apple addressed and fixed this issue yet? I'm sure enough people have called, complained here or reported it through the crash status.
I tried to recreate your situation.
CPU percentage goes way up, eventually exceeding 100%, fans come on. active memory begins steadily increasing.
All this per Activity Monitor readout.
Closing the page drops the CPU percentage back to normal range, but active memory remains at the level it achieved before closing the page.
Quitting Safari causes the active memory level to immediately drop back to a more normal range.
In my case I have found that memory is consumed and not returned. A simple test from startup with no swap space consumed shows my browser consuming 1GB of memory with 800MB of swap. When I quit the browser I see approx 500 MB of memory returned to the system and 356 MB of swap space is not freed. If I run the browser for a couple of hours under normal usage I see over 3GB of swap space consumed and my system becomes increasingly sluggish. When I quit the browser I see around 2GB of swap is retained. Clearly OSX is not freeing up swap space correctly.
Seperately it would be nice to have a config option to release paged memeory if not used for a certain period of time. For example 24 hours would wrk well on my system.
Swap is funny. If your Safari is using 1Gb of RAM and that causes 1Gb of swap space to be created, killing safari will not free up the swap space UNLESS part of Safari was swaped out itself. Swap is where the little used memory from ALL running programs goes, to make room for memory of the running parts of programs. So, that swap space will likely stay high in use because of all the running programs that are not accessing that memory are still running and still not accessing that memory.
The main thing here is (1) safari tends to use up a lot of memory, like many browsers, especially on serious JS-based websites (e.g., iCloud, which feels like real applications, is running tons of JS); and (2) some browsers do a really good job of freeing up memory when you close the window, e.g, Chrome and maybe firefox, but definitely NOT safari.
So you have to quit safari on a regular basis if you happen to go to websites that consume a lot of RAM, OR, you need to switch to Chrome and then all you need to do is close your window from time to time.
This all completely ***** but is not specific to Lion in my opinion. The main thing Lion brought is some sort of new memory system configuration which causes stuff to be swapped out when you're doing things like examining the file system. I am too tired to explain what I mean, but the end result is Lion swaps a lot more than anything before it. This doesn't actually matter if you have an SSD instead of a HDD. HDD's are super slow in comparison to SSDs and this new memory strategy seems to have been created with the SSD in mind.
So I finally upgraded to a 512 GB Crucial SSD and voila the beachball is gone. The free memory still tends to fill up but I noticed that if launch an application at that point, the inactive memory quickly frees up (possiblly because of extreme speed of SSD). Also when I purge, it happens instantly unlike before when it would take forever to complete. So I am assuming the problem is still there but doesn't really matter in practical terms since the SSD speed takes care of any lag.
The likely cause, Bobdc6, is that your 4GB of RAM was pretty well full up with not just the 1.5GB of browser stuff but of course critical OS stuff & other stuff as well, plus your HD was likely pretty well full up, too.
When RAM gets full up, the OS does intensive virtual RAM stuff (i.e., swap files). But if both your system RAM & your HD are too full up for even the OS itself to function efficiently, much less a browser, then just about everything you run beach balls for a long time & if the cause of that is not rectified, the OS just quits working, a lot of times. Got to give the OS breathing room! 8GB is best but at least, bare minimum, 6GB, especially when you have only 4GB of RAM, about 2GB of which gets sucked up by the OS itself.
My suggestion is first, max out your MB's RAM. The 2007 can use anywhere from 4GB to 6GB max, depending on the 2007 MB model. You can go here --> http://www.everymac.com/systems/by_year/macs-released-in-2007.html to find out what your particular 2007 model's max RAM capability is.
And of course, if you're short on HD space, clean up. A good util to do that with, for starters, is Monolingual. And you can also wipe out everything in your OS's printers folder, stuff that comes stock with the OS, and then plug in whatever printer you do use so that OS-X will sense its presence & download the appropriate drivers for that printer and only that printer via Software Update. BIG HD space recovery doing that. Or clean out the Printers folder & then run your printer's drivers/SW installer to get the drivers plus the extra goodies that your printer's manufacturer offers for that printer, if you want that extra stuff.
I've had a 256GB Crucial SSD for a year & a half now & man oh man, just like my switch back to Mac 5 years ago after an 18-year foray into The Dark Side of Windoze & Microsoft, I'll never go back to a spinning-disk HDD. My SSD is faster than any HDD I've ever had, and it's really nice to not have to worry about an HDD's read-write heads bouncing on a platter & screwing up saved memory, or possibly toasting the whole HDD itself. I've got a line on a Samsung 512GB SSD right now for only $350 NIB, & I might buy that today but definitely, within the next week. Really looking forward to having double the space, and it being an SSD, too. kk
Help sought from anyone!!!
My iMac has suddenly developed the memory drain. I have an i5 3.1 ghz mid 2011 model running 10.7.5 with 20gb ram installed.
The memory drains to virtually zero then shows up as partially inactive on the Memory Clean app. I release the memory with the app and it slowly drains again.
The only recent change to my set up is to format a new buffalo 2tb drive. This is currently disconnected though as I don't need it just yet.
Reading the threads I am at a loss as how to fix.
Any advice most welcome.
Same problem here a 5,1 MBP with 4GB of RAM running 10.8.2 would slow to a crawl and sometimes freeze up and crash. The cure was removing the npgtpo3dautoplugin.plugin via the command line with a trusty 'sudo rm -rf', please don't try this at home folks. Now my fans have stopped screaming and my lap isn't burning up just surfing the web.