When will Safari Content memory leak be fixed

Joined
Oct 28, 2010
Messages
18
Reaction score
0
Points
1
The first update for Lion has come and gone and it looks like the memory leak through the Safari Content process has not been fixed. I've seen threads mentioning this here and several threads at MacRumors and Mac Support, so why is Apple not addressing this?

This is the most frustrated I've ever been with Apple.
 

dtravis7


Retired Staff
Joined
Jan 4, 2005
Messages
30,133
Reaction score
703
Points
113
Location
Modesto, Ca.
Your Mac's Specs
MacMini M-1 MacOS Monterey, iMac 2010 27"Quad I7 , MBPLate2011, iPad Pro10.5", iPhoneSE
Do know that the older versions of Safari before 5.1 had a quite bad memory leak. Firefox has for years and years. Finally the new version is better but still goes up quite high over the course of the day of use.

People all gripped because Safari did not have Sandboxing, Well now it's going to take some time to get that process under control also.

It's true 5.1 does (ON SOME SYSTEMS more than others) does take quite a bit or memory after many hours of usage, but it still seems responsive here. I am not in a hurry and I am sure that will be taken care of over time.
 
Joined
Oct 1, 2007
Messages
7,163
Reaction score
275
Points
83
Location
UK
Your Mac's Specs
Mac Mini i5 (2014 High Sierra), iPhone X, Apple Watch, iPad Pro 12.9, AppleTV (4)
It's never really been an issue for me. It'd be worse on machines without much ram I guess. Worst case cmd+q and restart Safari.

Maybe I'm just used to it. My Firefox install on Windows at work regularly sits at 300mb+ with just a three or four tabs open!
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
No problem here either. I can run Safari all day long and still only use between 200 - 300 MB of memory. FF uses more memory - as others have stated.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
The memory usage issue with Safari seems to be limited and I'm willing to bet that it has to do with how one uses the browser. In my own testing (here), Safari had to be allocated 1.2GB of memory just to make it through a JS benchmark and never gave it up. If you don't visit anything that doesn't require Safari to be allocated more memory, you probably won't notice anything.
 

chscag

Well-known member
Staff member
Admin
Joined
Jan 23, 2008
Messages
65,248
Reaction score
1,833
Points
113
Location
Keller, Texas
Your Mac's Specs
2017 27" iMac, 10.5" iPad Pro, iPhone 8, iPhone 11, iPhone 12 Mini, Numerous iPods, Monterey
That's likely the reason I never observe Safari using much more than 200 to 300 MB of memory. I rarely if ever watch videos or anything that uses Flash. I'm usually either on here or reading news from various sites such as the Wall Street Journal, New York Times, etc.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
That's likely the reason. It would seem then that Safari has an issue releasing memory which isn't a problem if you do light browsing like you do. I might test this theory - do some light browsing for an hour and then watching something on Netflix for an hour to see if memory gets eaten up during the movie/show.
 
OP
F
Joined
Oct 28, 2010
Messages
18
Reaction score
0
Points
1
I don't think this is a Flash issue (and neither do most of the people in the various threads exploring it). I've had Safari open for less than an hour with no more than three tabs at once, and no Flash, and the Safari web content process is over 500mb right now with Safari itself over 300.
 
Joined
Aug 25, 2011
Messages
1
Reaction score
0
Points
1
found

I almost stopped memory leaking when disabled full screen apps. Then I lost most of gestures possibility. Problem could be gestures, and not Safari. Without gestures there is almost no signs of memory leaking. Try it.
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
Wow, just wow.

Mine is right now sitting at:

20110825-da2b4ueg1mbdkf5wyq2b31hgs2.jpg



I have 180MB free memory out of 4GB. The only apps open are Mail and Safari.

edit:
Quitting Safari and free memory jumped the 180MB to 2.04GB.
So I was still using 2GB of memory with not a single application open except Mail.

Well, I have to take that back. The following are running full time:
Time Machine
MobileMe
DropBox - 35MB
Evernote - 33MB
Window Magnet - 9MB
1Password - 15MB
TotalFinder - 4MB
 

BrianLachoreVPI


Retired Staff
Joined
Feb 24, 2011
Messages
3,733
Reaction score
124
Points
63
Location
Maryland
Your Mac's Specs
March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD
Yes - 5.1 can get really leaky sometimes. I posted some screenshots somewhere where I was over 2.5GB just for Safari.

Even more than the memory leakage - I want 1P and Evernote back to working correctly (meaning as it used to) with Safari. The move to 5.1 broke a lot of things. :(
 

dsa


Joined
Aug 27, 2011
Messages
2
Reaction score
0
Points
1
This problem has quick fix

just set "Run in 32 bit mode" chekbox and you will happy
 

bobtomay

,
Retired Staff
Joined
Dec 22, 2006
Messages
26,561
Reaction score
677
Points
113
Location
Texas, where else?
Your Mac's Specs
15" MBP '06 2.33 C2D 4GB 10.7; 13" MBA '14 1.8 i7 8GB 10.11; 21" iMac '13 2.9 i5 8GB 10.11; 6S
just set "Run in 32 bit mode" chekbox and you will happy

Sorry, but that's not a solution.

Even in the screen shot you used, you were still using over 1 GB of RAM for Safari.
 

dsa


Joined
Aug 27, 2011
Messages
2
Reaction score
0
Points
1
Sorry, but that's not a solution.

Even in the screen shot you used, you were still using over 1 GB of RAM for Safari.

And what's wrong with it? It is the browser what was working over a day on 4Gb box - even if 1GB seems to be big memory consumption (in fact it is not - any other browser shoed the same in such condition) but it is not a leak - the memory stays in the same state an do not cause the system to stall, spinball to appear and the scrolling is as smooth as it used to be.
 

BrianLachoreVPI


Retired Staff
Joined
Feb 24, 2011
Messages
3,733
Reaction score
124
Points
63
Location
Maryland
Your Mac's Specs
March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD
Looks like Apple is addressing this with the latest Safari update:

This update contains various bug fixes and improvements to performance, stability, compatibility, accessibility and security, including fixes that:

Improve JavaScript performance up to 13% over Safari 5.1*
Address issues that could cause hangs and excessive memory usage
Improve stability when using Find, dragging tabs, and managing extensions
Improve stability for netflix.com and other websites that use the Silverlight plug-in
Address an issue that could prevent East Asian character input into webpages with Flash content
Address an issue that could cause History items to appear incorrectly
Improve printing from Safari
Address an issue that could prevent the Google Safe Browsing Service from updating

For detailed information on the security content of this update, please visit this site: Apple security updates

*Testing conducted by Apple in August 2011 on a 2.7GHz Quad-Core Intel Core i5-based iMac 21.5-inch system using Mac OS X v10.6.8 Snow Leopard and configured with 4GB of RAM and an AMD Radeon HD 6770M with 512MB of VRAM. JavaScript benchmark based on SunSpider 0.9.1. Performance will vary based on system configuration, network connection, and other factors.
 

dtravis7


Retired Staff
Joined
Jan 4, 2005
Messages
30,133
Reaction score
703
Points
113
Location
Modesto, Ca.
Your Mac's Specs
MacMini M-1 MacOS Monterey, iMac 2010 27"Quad I7 , MBPLate2011, iPad Pro10.5", iPhoneSE
Brian, Not sure it's completely fixed, but 100% better here. After 10.7.1 it was normally every day going up to close to 2GB (Both Processes together), so I backed off and was using Chrome Canary. Since the 10.7.2 update the other day I have never seen it doing what I normally do go about 500MB or so. For sure they fixed something. I still feel Chrome Canary takes less but I won't complain about 500 or so MB. Will keep an eye on it and report back.
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
Wel,, I just ran Sunspider in Safari 5.1.1 in Lion (10.7.2) and when the test was done, Safari was using 1.52GB (I started the test right after opening it). I did the test in Chrome for the sake of comparison. Chrome was using 369.7MB when it started and was using 538.8MB when it was done. Not...even...close.

In my eyes, the memory problem still persists. The browser continues to consume RAM until it reaches a point well beyond what is actually required. From where I sit, I'm still waiting for a fix.
 

BrianLachoreVPI


Retired Staff
Joined
Feb 24, 2011
Messages
3,733
Reaction score
124
Points
63
Location
Maryland
Your Mac's Specs
March 2011 15" MBP 2.3GHz i7 Quad Core 8GB Ram | Mid 2011 27" iMac 3.4 GHz i7 16 GB RAM 2 TB HDD
I have it on good authority that the fix hasn't been released to Canada yet. :p
 

vansmith

Senior Member
Joined
Oct 19, 2008
Messages
19,924
Reaction score
559
Points
113
Location
Queensland
Your Mac's Specs
Mini (2014, 2018, 2020), MBA (2020), iPad Pro (2018), iPhone 13 Pro Max, Watch (S6)
I suppose it would be better to give us the actual fix than subject us to these minor updates that don't actually work. I'm okay with that.
 

dtravis7


Retired Staff
Joined
Jan 4, 2005
Messages
30,133
Reaction score
703
Points
113
Location
Modesto, Ca.
Your Mac's Specs
MacMini M-1 MacOS Monterey, iMac 2010 27"Quad I7 , MBPLate2011, iPad Pro10.5", iPhoneSE
Here Van it's releasing memory after a few minutes. Did a lot of heavy flash and within a few minutes the memory usage went down and it went into the inactive RAM. That is what I have seen here so far anyway.
 

Shop Amazon


Shop for your Apple, Mac, iPhone and other computer products on Amazon.
We are a participant in the Amazon Services LLC Associates Program, an affiliate program designed to provide a means for us to earn fees by linking to Amazon and affiliated sites.
Top