Firefox Memory Leak is a Feature
SenseOfHumor writes "The Firefox memory leak is not a bug. It's a feature! The 'feature' is how the pages are cached in a tabbed environment." From the article: "To improve performance when navigating (studies show that 39% of all page navigations are renavigations to pages visited less than 10 pages ago, usually using the back button), Firefox 1.5 implements a Back-Forward cache that retains the rendered document for the last five session history entries for each tab. This is a lot of data. If you have a lot of tabs, Firefox's memory usage can climb dramatically. It's a trade-off. What you get out of it is faster performance as you navigate the web."
So there's a way to limit the number of cached pages per tab, but no way to limit the total number of cached pages, for those of us who have fifteen tabs open?
Whoops!
tasks(723) drafts(105) languages(484) examples(29106)
How nice!
Now, how about telling us so up-front? And how about disabling it, or having another "feature" that enables us to turn it off?
... it would be The Satanic Verses all over again. The developer would have to spend the next four years cowering in Bono's basement.
Dumbest thing I've ever heard. Why is all this memory being used per tab?!
Did the Mozilla Foundation hire the same PR firm that Microsoft uses?
Bill Clinton: Pimp we can believe in. - The Shirt!!!
I left Firefox running overnight by accident, and when I woke up, the working set was over 2 gigs. I think that might be a touch excessive.
I still like it as a browser, though.
Slashdot - where whining about luck is the new way to make the world you want.
My bos doesn't agree at all. I tried including this feature in several of my builds. My company is so regressive, we have alot to learn from the leaders like Firefox.
"(studies show that 39% of all page navigations are renavigations to pages visited less than 10 pages ago, usually using the back button)"
/., If I want to quote the summary, I need to hit the back button to copy the text I want, then forward again to paste and type. Why can't I hit ctrl-T and get a new tab with the same page I'm currently on, then hit reply and anything I want to quote I can just switch tabs instead of screwing around with back/forward and scrolling.
So why is it that when I open a new tab I have to manually cut/paste the same address in it. For example, replying to an article on
-Rick
"Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
Hard choice but I'm seriously looking at Opera after seeing this I have a gig of RAM and its still laggy, I was wondering why the 'leak' was so high theres no way you could put that much bad programing to make a programe eat memory like a fat kid in a pie shop.
And in totally unrelated news, the Mozilla foundation recently announced that their flagship browser Firefox shall soon be renamed to Bigfoot, to reflect the software's large memory footprint.
More breaking news on these topics at 11.
An Indian-American Hindu committed to non-violent thought/speech/action alarmed by the global explosion of radical Islam
If this is true, then why is so little memory freed after the tab is closed, compared with how much it consumed when it was created?
If you don't know where you are going, you will wind up somewhere else.
how about a configurable option to not take up 200mb of ram? keep it as-is by default, but let power users toggle it off
Why does Opera do the same thing faster without the memory penalties?
FanFictionRecs.net
about:config then search for browser.sessionhistory.max_total_viewers and set it to 0. This will be 0 pages in the cache per tab. You will get a reload slow down since FF will be going out to the web. You can manually set this to 2 or whatever you want. By default FF will cache upto 8 pages per tab with 1 gig of memory or more.
For those that don't know or remember, the preference is accessed by typing about:config in Firefox's address bar. Let's see if there's still a leak after you change the option. I know when I close tabs the memory usage doesn't go down.
Small potatoes make the steak look bigger.
yes, it was a joke.
Too bad they don't write that cached pages to a file isn't of retaining them in memory. The load time would be slower than being read from memory but faster than reloading from the web site.
And this better be easily disabled. As in a checkbox in a dialog, not having to hack about:config. I don't pay $$$ per month for broadband just to have the browser playfully load teh interwebs into my RAM so I can "perceive" more speed.
It's ridiculous that Firefox uses 700MB of memory with 4 tabs open (right now, btw). They need to fix this, not engage in creative PR.
Web2.0: I love when people Flickr my cuil and digg my boingboing until my google is reddit and I start to yahoo
Where is the prefs.js option that lets me turn this feature OFF ???
"Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
I sure wish this was an optional *feature*.
Ben was mistaken, it's cached globally.
See this comment by Boriz Zbarsky:
and this comment by David Baron:
(Boris and David are back-end developers; they have much more working knowledge of this than Ben does.)
Also, there are actual memory leaks in Firefox. See this weblog post about progress on that. However, as that weblog post says as well, most excessive memory usage that people are seeing is entirely due to faulty extensions.
Ok, great, so having lots of tabs open uses lots of memory to cache all those pages and some history... but why doesn't that memory get freed when those tabs get closed? Just now I had about 16 tabs open and FF was using 58MB (up from about 40 before opening some of them). I closed half those tabs and the VM size is 54MB.
It's not exactly rocket surgery.
The humor in all of this is, you don't really have a gun and you would never really shoot someone, as your post suggests you are man enough to do. Grow up.
there are many many other reasons to switch to Opera as well.
-ashot
Before someone jumps at my throat, it's just a description what I'd like to see, but of course its all up to the developers, they decide what to code and do with their time. It is just simple user feedback.
It takes a man to suffer ignorance and smile
Be yourself no matter what they say
See Firefox is the most unstable program in common use.
The Firefox CPU hogging bug makes a computer unusable until all Firefox windows and tabs are closed. Basically, Firefox uses first maybe 10%, then maybe 20% of the CPU, and, as Firefox windows and tabs are opened and closed, continues taking more of the CPU time until Firefox is closed. This CPU usage is with NO Firefox activity, or any activity of any program.
This bug is more than 3 years old. It is extremely difficult to characterize; no one has succeeded yet. Here are some clues:
Somehow Thunderbird and Mozilla share this bug. Sometimes when Firefox is taking say, 94% of the CPU, and Firefox is closed completely, Thunderbird or Mozilla will begin using a lot of CPU time. Very weird, but it often happens.
Firefox 1.5.0.1 is much worse than 1.5, which is worse than earlier versions. This suggests that there is some resource in Firefox that is being more overused as features are added.
The CPU hogging bug continues unchanged when Firefox 1.5.0.1 is installed with a clean profile and no extensions.
Too many mouse clicks too closely spaced will often increase Firefox's CPU usage, or sometimes cause it to crash.
--
Before, Saddam got Iraq oil profits & paid part to kill Iraqis. Now a few Americans share Iraq oil profits, & U.S. citizens pay to kill Iraqis. Improvement?
Why is everyone bitching about this? I hate waiting for any refetch or rerendering when I use the Back button; I want it to be instantaneous. That page was fetched and rendered aslready, so having the browser keep it around for when I go back to it is exactly what I'd want it to do.
Damn that's sweet. I had no idea.
It doesn't hurt to be nice.
firefox's memory usage has always been a thorn in my side. I tend to average around 20 to 25 tabs open, usually while I'm running other ram hungry applications. Firefox generally was eating up about 200-250 megs of ram on my machine (and I've seen it go as high as 600 megs). After changing the browser.sessionhistory.max_total_viewers to 0 and running "top" firefox seems to be using about 46 megs of ram right now. It also doesn't feel particularly slower than it did before. I have a feeling that the benefit of caching so much was actually having a negative return after a certain point because the machine was so starved for ram.
On a side note, if anyone is like me and looks in about:config for browser.sessionhistory.max_total_viewers and doesn't see it, you have to actually add the line. Right click and choose "new" then type in "browser.sessionhistory.max_total_viewers" and then 0 (or whatever you like).
Famous Last Words: "hmm...wikipedia says it's edible"
Buy more RAM!
Seriously, I think 1024MB of ram doesn't cut it these days. Maybe we should just accept 4gb of ram will be the norm in 2007-2008. I seriously could use it with other memory hungry apps that are sluggish *coughs* Illustrator *coughs* Indesign *coughs*.
"I am the king of the Romans, and am superior to rules of grammar!"
-Sigismund, Holy Roman Emperor (1368-1437)
The answer to that is pretty simple:
The heap, where dynamic allocations occur, is only allowed to grow or to be truncated. An application cannot release memory in the middle of the heap without also releasing the memory at the end of the heap.
So let's say Firefox makes 10 one-page allocations, and frees the first 9. The memory layout might look something like:
XXXXXXXXXU (X- unused, U- used)
Those 9 pages worth of memory aren't being used, but it's impossible to release them back to the OS.
Thankfully, there is some good news: when Firefox needs to allocate more memory, it can and will just reuse those 9 unused pages instead of allocating more memory from the OS and growing the heap.
The best solution to this problem is to use a compacting garbage collector. Which is something that Java and C# and other higher-level langauges can easily make use of (and many do use them), but which C and C++ can't really make use of given the complete lack of compiler support. That's one reason why a Java or C# app can actually out-perform a similar C/C++ app, especially with a good native-code compiler and an library implementation with a modern GC.
Uh, using a lot of memory is not the same as a memory leak.
I think this submission is confusing two points. First of all, is this really a memory leak? A program that uses a lot of memory is not necessarily a leaking program. A memory leak is a programmatic error where memory is allocated but never freed, even when there's no way to use that object again. As the program continues to allocate memory, the heap size of the process increases until eventually the OS terminates the process (eg., the OOMKiller). Actually, many applications you normally use leak memory - but as long as they don't waste a ridiculous amount of memory most people don't care, especially since most process lifetimes are relatively short (compared to a daemon process like apache), and after termination the OS reclaims all the program's memory, leaked or not.
What is being described here sounds much more like a cache of recent pages, which in my opinion is perfectly sane for a browser. Sure, maybe the cache is a bit overzealous, but even if that's the case, just disable it - worse case scenario, you edit the source. But otherwise, this is definitely a feature - I can promise you it's much more programming effort to save old pages for a quick redraw than to free the old page and replace it with the new.
So I guess the discussion here is, "is it right for firefox to use so much memory?" My answer is yes. It is not a memory leak, it seems like a very valid design decision. But if you disagree, old versions of firefox still work great (I still haven't upgraded myself).
http://www.talknerdy.org
but why doesn't that memory get freed when those tabs get closed?
In most implementations of the C library, malloc() is implemented in terms of sbrk(), which adds memory to a program's heap but never releases it until the program closes.
Lots of great replies to me pet peeve, I hope some mods dish some points out to these posters!
-Rick
"Most people in the U.S. wouldn't know they live in a tyrannical state if it walked up and grabbed their junk." - MyFirs
Of course, my copy of firefox will leak about 10 megabytes a second if I just go to a page with hundreds of jpegs on it
and hit shift-reload over and over again.
I wonder if that's a feature too?
(Even better, it doesn't leak Firefox process memory, but rather X11 pixmaps)
Uhuh. It's the same with Google.
One minute we're all pro-civil liberties, pro-free speech, anti-censorship, anti-repression but the moment Google wants to do business in China, 'they're only following the laws of that country', they're doing nothing wrong. Switch with Microsoft and they'd be 'dealing with an evil regime, shame on them' yadda yadda.
Same with Nintendo. Bash Microsoft and Sony for coming out with unoriginal sequels yet Nintendo are such innovators for bringing out Metroid Fusion, Super Smash Brothers Melee and Super Mario Rainbow Warrior.
I already have a task bar at the bottom of my screen. I just open a seperate window. Who needs tabbed browsing? Its just more screen real-estate wasted on another useless bar. Use the windows task bar! OPEN A SEPERATE WINDOW!
Fascism is the greatest political ideology ever conceived. Sorry.
Is it still a feature then?
Or is it - instead - a personally-resolved memory cache integrity issue that you submitted to the code base?
Huh?
-- Tigger warning: This post may contain tiggers! --
I'm not buying this. Even if I close all of my tabs after several hours of use firefox.exe can still be taking up to 100MB of my RAM. The only way to completely reclaim the memory is to completely shut down firefox.
Go for it. You won't look back.
Opera's memory usage is excellent - especially when dealing with images.
The tab management is a lot more advanced than FF too, imo.
If FF is lagging on you... and IE is not secure... why are you not using Opera yet??
- Opera has none of these problems. So, the quote from the Mozillazine blog
shown below, although it is typical, is not supported by the
facts.
- Whatever causes the CPU hogging bug is definitely associated with extreme
memory use. No doubt there are leaks, but this is not a leak, since it is not
necessarily associated with greater use of Firefox.
- Users often report that just leaving Firefox open overnight causes CPU
hogging and extreme memory use.
- The problems are the same in Mozilla browser.
- It's good to test Firefox with a laptop in a quiet environment. When you
hear the laptop fan begin to run while there is no activity, you know Firefox
has begun to suck CPU cycles.
- Putting a computer into standby or hibernation often makes the CPU hogging
bug much worse. That's why Firefox users sometimes just leave their computers
on.
- When a computer takes a long, long time to start from standby, you know Firefox
is taking CPU cycles. What about coming out of standby makes Firefox unstable? No
other program has that problem.
Quote from the blog linked in this Slashdot story About the Firefox "memory leak": "A lot of people complain about the Firefox "memory leak(s)". All versions of Firefox no doubt leak memory - it is a common problem with software this complicated."No other program in common use is so buggy. The problems in Firefox are not "common".
Another quote from the linked Mozillazine blog: "What I think many people are talking about however with Firefox 1.5 is not really a memory leak at all. It is in fact a feature."
That's not what the technical magazines, newsletters, web sites entirely devoted to Firefox problems, and even the mainstream media say. They say it is a serious problem.
Mozilla developers have been denying that there is a serious problem for more than 3 years. It seems that it would be less work to fix the problem than to undertake a cottage industry of trying to convince people they aren't having problems. Mozilla developers have been impeding characterization by marking Bugzilla bug reports of these problems invalid.
However, it is clear that it would take a serious scientific investigation; this is not an easy bug to characterize.
Why keep people on slashdot spreading this kind of FUD? The accounts are at best anecdotical, People here are using Firefox 1.5.0.1 on Windows XP & SUSE 10 on about 100 computers and it works just fine.
The Clone Window extension.
Look it up, dingus. There's no reason that every web browser should behave exactly like IE out of the box. That's what the extension feature is for. =)
Seriously, I think 1024MB of ram doesn't cut it these days. Maybe we should just accept 4gb of ram will be the norm in 2007-2008. I seriously could use it with other memory hungry apps that are sluggish *coughs* Illustrator *coughs* Indesign *coughs*.
I personally think that noone will ever need more than 640gb of RAM. So let's hard code that in, shall we?
-- Tigger warning: This post may contain tiggers! --
Opera (or at least recent builds) does the same thing regarding caching. I have a dozen or so tabs open now and Opera 9b2 is using 90MB of RAM and 125 of virtual memory.
I personally think that noone will ever need more than 640gb of RAM. So let's hard code that in, shall we?
???
Did you read the bug reports, magazine articles, newsletters, and many, many anecdotes from users? No? Then why waste everyone's time commenting?
Firefox crashes when two browser windows are making synchronous XMLHttpRequests. I have experienced this under Linux - I have no idea whether it is the same under Windows. Basically under Lunux all Firefox windows are running in the same thread utilizing a scheme of cooperative multitasking.
So far so good. The bug appears when two separate Firefox windows are making periodic synchronous XMLHttpRequest-s. When such a potentially lengthy task has to be executed synchronously, Firefox creates a new "nested" event queue. If two (or more) browser windows are doing it at the same time, new event queues are created all the time and eventually (within 5 minutes) the application core-dumps.
I found this by recompiliging Firefox with debug information and debugging it. Even if my interpretation of what happens is not completely correct, the fact remains - a simple JavaScript can crash Firefox causing all open browse windows to be closed.
The solution is to always use asynchronous XMLHttpRequest (which is a better practice anyway) and to hope that the same problem doesn't appear in other places. Still, it is troublesome.
The person that sent in this article is mistaken. In Firefox 1.0 the Memory Leak still existed without caching previous pages completely as is currently done. Do I need to say anything else? It may be possible that the new caching system worsens the problem slightly, but it's not the cause of it.
do {print "Mini-Geek Rules!\n";}
until ($TheEndOfTheWorld);
How can you trust the CEO after he didnt swim across the ocean?
i could never stand behind a company like that and refuse to use opera products untill he makes good on his word. You cant just throw statements like that around. Browsers designed by liars are dishonorable browsers.
I'll just use my special getting high powers one more time...
Hmm ... must be a Firefox on Windows thing. I've never seen this problem on my 'ix box (BSD).
firefox currently sitting at 0% cpu usage. perhaps you should upgrade your pentium 133 :)\
seriously, the only thing i could think of is that if firefox ran out of ram and had to start using the pagefile, that would eat up tonnes of CPU. This would also effect other programs on the system. Are you sure you have enough ram in the machine? I assume you can replicate this bug on more than one machine right?
Ive had some sites crash firefox repeatidly but i cant think of any examples off hand.
I'll just use my special getting high powers one more time...
And here I was thinking that Outlook and IE ranked much higher on the scale of both common use and bugness.
How we know is more important than what we know.
mod parent up - informative.
how come the Ctrl-Z after Ctrl-T gets +5, but the post about the duplicate tab link (which allows Ctrl-Shift-T to create a new tab with exactly the same content *and* forward/back history) stays at Score: 1
wtf?
While the default setting of "use all memory available" might be a bit unfortunate, this is tuneable. (After all, you can't tuna fish, but you can tune a, well, browser.)
Not an FF fan, but trying to be fair.
.. paranoid crackpot leftover from the days of Amiga.
I guess when I say `Yeah, right!' sarcastically, it is on behalf of firefox users with bullshit detectors turned on.
If you haven't already read the article, you can actually change this setting so Firefox will end up using less memory than it does by default.
So Microsoft or Gnome are now leading the Firefox development? Because that looks like something just out from those camps. Ugh.
Why not swap to on-disk cache after a certain timeout? That is, if the explanation given is accurate.
"Strangers have the best candy" -Me
I don't care if this is a bug or a feature, global or localized to multiple tabs and any other competing misinformation in the comments of this article.
What I do want is a buttom I can place discreetly in the UI that lets me clear the memory cache in real time when firefox starts to get bogged down by this [feature and/or bug]. thanks in advance
Memory isn't an unlimited resource you just hoard whenever you think you need it. Right now my instance of firefox is taking up 128 megs! I've seen it up to 256 megs before. This is just simply insane. I've seen people who's computer performance has gone down the tubes because firefox is taking up all the memory (and these are machines with 512 megs of memory, not exactly tiny). What I'd like to convey to the firefox devs is this: Your application isn't the only one running on the system. Play nice and don't be a hog.
With the number of people complaining about this (and the number of people that don't even KNOW to complain) isn't it a safe bet that you've made a mistake in the amount of cached pages?
AccountKiller
Slashdot readers actually bashing Firefox for once....
I've been using Mozilla Firefox for about a year now, and I started off loving it. However, a couple months ago I noticed the browser would "freeze" for a few seconds when loading a page, or after typing URL incorrectly. It has become almost unbearable, and I've tried clearing the cache regularly, uninstalling/reinstalling, and other measures, all to no avail. I've sought help online, but found nothing. I'm not sure what else to try, short of reformatting my desktop. Or.. going back to IE, which is my temporary (and unsatisfactory) solution. If anyone here has experienced similar problems, and found a solution, please share.
Strange how opera can have even better page navigation speed with much smaller footprint.
I promise, I won't do ANYTHING bad to him *whistles innocently* really! *Loads gun behind his back* :P
. . . and accidentally shoots a nearby lawyer, leading to a case of conflicting emotions for the observers.
(I couldn't help it. Really, I hope the old guy pulls through okay.)
In addition to the memory/cpu hogging, Debianized FireFox also crashes very very often... :-(
That's why I prefer Konqueror, and suffer from a somewhat limited web sometimes...
The bug was tested extensively on Linux a considerable while ago, and it was the same, except that Linux recovers gracefully when a program goes crazy, and Windows usually needs to be re-started.
However, a Firefox developer marked the bug report "Invalid" because he said it was not helpful.
If you read the reports, it takes extensive use before the bug becomes really bad. Lots of windows and tabs, and a day's time. Most people don't have that usage pattern.
A memory leak is a different thing. Someone needs a little CS 101.
You failed to understand either the article or the post you are replying to. Your problem has nothing to do with the issue at hand here.
https://bugzilla.mozilla.org/show_bug.cgi?id=28679 5.
I opened a bug on this exact behaviour a while back. Pile in.
A common argument about this bug is "It doesn't happen to me, so all those who report it must be wrong."
Those people stop thinking at exactly the moment we need people to start thinking. As I said, the bug is extremely difficult to characterize. If it weren't, it would have been fixed in the past 3 years.
It will take a very skilled logical thinker who knows debugging very well, I think, to find the bug. But, it's a huge one. After it is fixed, I'm guessing it will be easier to work on Firefox development.
Go to about:config Create a new boolean name it config.trim_on_minimize set it to true Next time firefox is using too much ram, quickly minimize it, then bring it back up. Done.
That previous post had newlines in it. Now it just looks like I have no understanding of punctuation.
Well, I (Windows 2000) and 2 co-workers (Windows XP) have th usage pattern described by the other poster, and have never seen the CPU hogging bug. In my case, I have about 60 tabs open in 5 windows and FF has been open for about 3 weeks. Two of us have been using primarily FF since around 0.9. The memory situation has improved with FF 1.5 - it no longer increases every few seconds even with no use of the program.
T
I'm posting this using Firefox. I just checked the CPU use: 41% with no activity, a clean profile, and no extensions, Windows XP SP2, all patches applied. Time to close all windows and tabs, and start over, the second time today.
A common argument about the Firefox bugs goes something like this, "I didn't read everything that was reported. I duplicated one or two of the conditions. I didn't see the bug. Therefore, I am guessing that I am a LOT SMARTER than those who are reporting the bug.
Little by little, Firefox development has become denial development.
Except that opera also has the fastback feature (it got it before firefox) and is subject to exacly the same memory issue (not accepting to admit it won't change it)
"The way we can tell it's C# instead of Haskell is because it's nine lines instead of two." -- wadler
I find it hard to believe that someone would accidentally shoot a lawyer.
Though it is probable Opera is more efficient than Mozilla on a per page basis with it's quick back functionality it clearly still uses memory to do it so there is a 'memory penalty'. On the other hand memory is there to be used, having loads of free memory on your system is just a waste, it may as well be used to cache something if there is no other demand on it.
Opera have been doing this for as long as I can remember though so it should be no surprise that it is better at it than Mozilla which has had the idea retrofitted to it relatively recently.
Boffoonery - downloadable Comedy Benefit for Bletchley Park
I was under the impression that all browsers stored a cache, and do they really need to store it in memory, can they not just use a disk cache like every other browser on the market. Also, unless it's caching video's 200megs is a lot of memory for webpages.
lets say each page takes 1 meg up, that's still 10 tabs with 20 levels of history on each. and 1 meg is abhorrable for a html site and it's content, also images throughout the same site are often shared, so they should not need more then one copy in the cache. I would estimate, roughly, that on average a cached html page + images should not take more then 300k, and I consider that to be a generous estimate. Compression could make the html and such even smaller.
Point being, 200 megs in ram for a cache seems like to much, and with efficient caching, 100 cached pages should not take more then 30 megs or so of memory. Which would ideally be put on the disk and not store any duplicates of any information/images etc. (if tab1 and tab2 saw the same page, only keep 1 cached copy). It just seems wierd that they need to cache on a level beyond what the http and html both allow. Can't you just have a single normal cache like everyone else?
Why don't you just hold CTRL when you hit reply, so the reply window will open in a new tab, and the summary will be right where your left it?
Moderation Totals: Flamebait=2, Troll=1, Redundant=1, Insightful=6, Overrated=1, Underrated=1, Total=12. (not mine)
Just a though here... but anyone who is really concerned about their computers performance, even web browsing, should make sure their hardware is capable of handling what they ask it to. So: If firefox is that slow for you, then you don't have enough RAM. I certainly have never had problems, and I leave 6~12 tab sessions open for hours at a time.
It's poetry with a beat behind it! And guns! They're like beatniks with automatic weapons.
Shame it took 4 years to come up with this ripper of an excuse.
It doesn't explain why a browser doing nothing overnight can chew an extra couple hundred meg of memory either.
even George Bush couldn't win with a minority that small, yet my computer grinds to a halt. A choice would be nice.
It'll be really funny if running an "IE vmware player" actually uses less mem and CPU than firefox.
Might even be safer...
Oh well, time to switch to Opera I guess.
America has a serious problem. America is addicted to tabs, which often lead to memory shortages. We need to wean ourselves from this addiction.
Firefox has some other outstanding bugs and issues. Personally, I just want to print.
9 2 (you'll have to copy-n-paste that URL -- bugzilla won't allow hyperlinks from Slashdot) makes Firefox useless for me and my company.
Unfortunately, the bug #154892, https://bugzilla.mozilla.org/show_bug.cgi?id=1548
This bug dates from at least 2002, but may be older. Still, not only is it not fixed, it seems no more likely that it will ever be fixed that it did four years ago. I've given up hope. It's critical failure that prevents Firefox from being useful in an office environment where people might need to print general web sites.
This is symptomatic of the problems with Firefox and some open source projects. Really basic stuff never gets fixed because no one cares or knows how. There's no effective pressure to get this kind of thing fixed.
To reiterate: this is a debilitating four year old bug that for which no fix is even on the radar. I'm totally confident in predicting that four years from now this same bug will still blight the Mozilla source. It's a sort of awe-inspiring problem: a huge cock-up in the way Firefox prints hasn't even been prodded at with long stick since it cropped up years ago!
How many other flaws like it still exist, untouched, for years upon years?
The Firefox developers seem really good at fixing the little glitches and security flaws, yet ill-equipped or unwilling to tackle these old, deep, flaws that don't directly affect their daily use of the product. I wonder how many other organizations haven't deployed Firefox because of these kinds of problems?
I like Firefox in many ways and would like it to succeed, but for that to happen the developers will need to see more things from the perspective of the browser's users, or better respond when users find un-sexy usability nightmares in real-world day-to-day deployments.
Virtual memory, look into it!
Who cares if Firefox or any app is a bit of a memory hog???
As long as it is just using the memory as cache space and not accessing the memory randomly, it'll be paged out into virtual memory as needed.
I suspect a lot of the people who are bitching about this are the type that stare at 'top' output or the Task Manager all day looking for programs that are using a lot of memory so they will have something to bitch about when in practice having the program use that much memory just doesn't have much impact on system usability, assuming you're using an OS with decent vmem support.
The cache feature is nice, but why distribute it out to every tab? If I have 20 tabs open I'm not going to be constantly clicking the back button on each of them. Why not clear the cache on tabs that haven't been accessed recently and only keep cache on tabs actively being used. Often when I open new tabs I just want to be able to quickly access that page, or use it as a temporary bookmark - not navigate back through the path that got me there.
Find coupons in Greeley
The problem is when you close tabs, Firefox doesn't seem to free the memory leak. It seems to stay resident until you kill Firefox. Not cool.
3G VSIZE for firefox? (at the moment, with only 14 windows open [I hate tabs, as I often look at one thing while doing something in another window]...) Sheesh. I did want them to stop reloading pages when I use the back button, but I'd be happy if they just used a disk cache rather than a ram cache... Of course, only 113M is resident, so I suppose they *are* using a disk cache, in effect...
I've noticed that 1.5.0.1 is much slower than 1.5. Time to downgrade again 'til it's fixed :(
Opera somehow manages the same thing in far less memory (and greater speed). If it had the webdeveloper toolbar I'd never look back- it's the only thing that keeps me using Firefox at work, even though 90% of my browsing is Opera now.
"Seven Deadly Sins? I thought it was a to-do list!"
Isn't Gecko the fastest rendering engine around? Why don't they just compress & cache the actual html, and then re-render it?
A typical page is 30kb - 100kb of plain text. Once it's compressed it's probably under 10kb.
It might take a fraction of a second longer to re-display the page, but with all the extra memory you'd have available who cares/notices.
Why don't they do that or am I missing something obvious?
Makes what faster? It sure doesn't make my system any faster (quite the opposite, my machine sometimes slows to a crawl, where I can't even listen to music at the same time, and it takes 2-3 minutes to switch applications. Yes, I have an old system).
As far as my internet usage, it's already plenty fast enough. Any increase in browsing/rendering time is minimal at best, in my experience.
This should be "smart" and turn itself off for people with less than a certain amount of physical RAM. And should lower it's priority to other apps. i.e. if the person opens up Photoshop with a 50MB photo, Firefox should yield some of its extra RAM usage back to the system.
Cameron Simpson, DoD#743 cs@cskk.id.au http://www.cskk.ezoshosting.com/cs/
For as long as I can remember, Opera ships with Memory Cache set to automatic. Setting a max amount of memory to use has always worked for me when I needed to limit it. I would suggest trying that. Go Tools, preferences, advanced, history, and set a limit (or disable) the Memory Cache.
On OS X 10.3, Firefox 1.5 was the CPU & memory hog. But I have been using 1.5.0.1 extensively and it is MUCH better. It even seems to use les memory than Safari.
I still would like to see better idling behavior (I'm not entirely comfortable with 4% usage) but 1.5 was 3x as bad.
I attempted to replace IE with firefox in a kiosk intranet application at work about a year or so ago. The page to be displayed generated a work-specific statistic and was simply set to meta-refresh itself every second. This would produce a 99% cpu usage firefox after about 12 hours running. I had to go back to IE. Don't have time right now to create a test setup to reproduce the problem, but perhaps this is a clue someone else can use...
Clicking in Firefox in OS X pegs the CPU at 85 to 90% while the mouse button is down. For best performance, avoid clicking.
I think the problem is related to me Carbon event model that Firefox still uses. Maybe this will be fixed someday. Or maybe not.
It doesn't seem to work for me, the memory still isn't releasing. However when I set browser.cache.memory.enable and browser.cache.disk.enable to false it seems to release memory after the tab is closed. I found now adverse effects on browsing.
Theyve point out that you can change how many pages to cache and all that but really isnt it a bit daft anyway. I mean if the browser is going to do RAM intensive things like that how on Earth am I supposed to know exactly where to stop it. In fact how does it know?
E.g. set the cache so it only holds 4 pages or have a system with a small enough amount of RAM that it does that automatically. What if those 4 pages have vast amounts of content youve still got the same problem.
Wouldnt it make a lot more sense and infact potentially seal up other issues if you restricted the RAM space the browser can take up rather than restrict the pages it can cache. Have a little slide bar set it to 100meg and thats all firefox can ever use. Simple and means no one needs to estimate how many pages they can open, no computer will have RAM issues because the browser can just scale itself depending on how much the computer has, and if you have a tonne of memory you could be caching far more than just 8 or even 25 pages and making the whole thing even faster.
Im no web browser developer so maybe im over simplifying this but it just seems like a dodgy design decision to base RAM usage on an unknown quantity of data from an arbitrary number of pages rather than on how much RAM there is to use.
Which is to port this bad boy into C++ The culprit is the JVM.
Have you tried setting a limit on the memory cache in the preferences? Its set to automatic by default so by default it'll go pretty crazy. It still won't slow down though, even on systems like the 128MB ram one I am on now. The 10 tabs with long histories in each don't seem to affect performance.
1 (short ton / firkin) = 89.1432354 slugs / keg
n/t
In addition to the memory/cpu hogging, Debianized FireFox also crashes very very often... :-(
This seems to plague the Win32 build as well -- Firefox used to work like a charm, but since upgrading to the 1.5x branch it seems to crash all too frequently. Can't peg a cause other than the fact that having multiple pages open seems to cause the problem (3 typically does the trick). Annoying as heck.
Comment removed based on user account deletion
The "memory leak" I complain about isn't a simple matter of Firefox getting excessively large (well, I do complain about that). My MAJOR complaint is that it frequently gets into a runaway memory grab loop where it goes from a "mere" 800 megs to 1.5 gigs in 30 seconds or less, before the oom killer gets to it.
I just loaded FF 1.5.0.1 and Opera 8.5 on Mac OSX 10.3.9 (iBook G4 1.2GHz 768M) each with identical nine tabs:
Firefox: 54.15M (Real) 190.07M (VM) ; 2.1% idle
Opera : 59.36M (Real) 239.66M (VM) ; 0.4% idle
Assessment: This Firefox outperforms both Opera and Safari in memory usage, and is faster than Opera on challenging pages. However it has the least favorable idling habits, starting at 2% here and would climb to 4% after several days of intensive use. FF 1.5.0.1 memory use would climb to about 100M for the same pages over the same period, indicating the cache grows somewhat but not wildly the way FF 1.5 did.
The test of also rather unfair, as I have 7 FF extensions running.
...give us the option to turn it off. Thank you.
The article has been corrected. Note that the maximum number of cached pages, regardless of the number of tabs, defaults to 8, and that's only if you have at least 1 GB of RAM. RTFSC:
s history/src/nsSHistory.cpp#161
http://lxr.mozilla.org/seamonkey/source/docshell/
If you're unhappy with the memory usage with 50 tabs open, I advise the following workaround:
DON'T DO THAT.
There's no failure quite as dissatisfying as a complete and total solution to the wrong problem.
There I was, thinking that the Mozilla developers were just retards who wouldn't know a profiler if it bit them in the ass who therefore chose to cover up their piles of crap by throwing memory at it. I'm happy to learn that they are in fact just experienced software engineers who understand the fundamental tradeoff between memory and speed.
Really, if you want all the awesome performance and features of Firefox, just pay the few bucks for an extra gig of RAM.
Firefox 1.5 implements a Back-Forward cache that retains the rendered document for the last five session history entries for each tab. This is a lot of data. If you have a lot of tabs, Firefox's memory usage can climb dramatically. It's a trade-off. What you get out of it is faster performance as you navigate the web.
The only problem is there were bugs filed for memory leaks long before Firefox 1.5 and the Back-Forward cache were implemented. Maybe this feature does contribute to Firefox's large memory footprint, but to say that this feature is the only reason and that there are no leaks is simply false.
If it's not happening to you personally it's not a Firefox bug? I've heard that justification before.
I can pretty much guess where the problem is. The solution: deal with it, or say no to garbage collection.
See, virtual memory and garbage collection don't mix. The larger the reachable set, the larger the area of memory the garbage have to scan, which translates to frequent paging in and out. Once the size of memory to search exceeds (available physical memory)*gamma, there every page will be swapped every time the garbage collector runs.
If the garbage collector runs on a timer , and the timer is faulty after sleep/standy, it could call itself more often than it needs.
GTG.
I'd like to be able to turn it off so that I can use a web browser and, you know, do anything else on my computer. I noticed the large amount of memory firefox was using a while ago while I was doing some memory-hungry programming. It was annoying because I frequently had to close down my browser that I was using to view some API documentation.
If you can read this sig, you're too close.
If Firefox is caching these pages, why doesn't it cache POST results? When I hit back to go back to a page obtained via POST, FF refuses to show it to me, asking me to either cancel the action or resubmit the form. JUST SHOW ME THE GODDAMMN PAGE, DAMMIT!. Once the page lands in my machine, regardless of how I obtained it (i.e. via GET, POST or whatever), then just show it, or at the very least give me the option of seeing the possibly expired page. Let it be my decision.
Just go into about:config and create a new boolean pref named 'browser.environment.worldPeace' and set it to true. Instantly all wars will stop and everybody will sing and dance together.
What I really find humorous about this article is that there's so few funny posts (I only view 3+ posts). I guess if it's open source it's a feature, if it's Microsoft it's just sh*t :) You Linux guys really should get a life :)
It's dumb to me, mostly that whereas someone would simply click a link to access it, I would open the link in another tab and close the tab i'm in to get to the tab I just opened.
Why do I do that? Not sure, but I think I do that so I can stay on the first page while the other page loads. So that feature is quite annoying to me. Often makes me have to close/reopen Firefox (with SessionSaver enabled) to gain back my memory.
If it's a feature, how can i disable it? (and if it's in TFA, well, i'm about to read it, so don't RTFA me)
You just got troll'd!
Comment removed based on user account deletion
George Bush doesn't care about Opera.
It's been like that since before 1.0.
When you hit the back button to go to a page that had POST information, it requires you to re-submit the data rather than drawing the page from the cache. This used to work perfectly back in the Netscape 3.x days but has never worked properly since.
At least this 'feature' is better then the remote admin facilities in IE.
personally as a programmer, I tend to define a memory leak as memory which will be freed (until program termination, since all used pages should be returned to the OS then...), particularly through programmer error. For example i would not define the following as a memory leak though i would disagree with it's style:
/* do some work with array a */
int main() {
int *a = new int[10];
return 0;
}
while i personally would not write code like this and would consider it bad style, it is not really a "leak" because firstly, it is by design and secondly it does not "leak" more and more memory over time. Realistically what this article is talking about sounds more like caching to me, that is intentionally delaying freeing memory with the expectation that it may be used again in the near future. Considering that there is an upper limit on how much memory it will take up overall, this sounds like it would generally improve performance.
Now, should it be configurable, sure, on by default, sure.
In reality, I find a lot of computer users, usually non-programmers are very much obsessed with the notion that programs are bloated, and frankly, it's getting annoying. I continually see generally good programs on betanews get bad ratings because "it's too much of a memory hog" or "it's bloated" or "omg! it is taking 20 megs of memory".
While it is trivially true that if a program can be written smaller with no change in performance in functionality then it should be, it never seems to dawn on people that programs may be written to sacrifice memory for performance. Anyone familiar with optimization techniques will tell you bigger does NOT equal slower.
proxy
Plugins to help with downloading large sets of images from galleries. Take galleries involving home pictures of cats and dogs, with teh downthemall plugin you can easily download every picture on the page (the ones behind the link, and not just thumbnails) to the folder of your choice.
And if those pictures happen to have similar numbering schemes, suchas 01.jpg, 02.jpg etc.. down them all will rename them on the fly so that they dont have any image mix ups!
I also use FoxPose, which allows me to take many tabs and put them all visually on the same windows (ala expose for mac) and choose which one I want to use.
There are a few other things I like, but I am not sure that they arent already in Opera though.
If you don't vote, you don't matter, so don't waste your time telling me your opinion
I switched that to false, and http://www.google.com/ig wouldn't load anymore. I noticed a few other sites that just wouldn't "go." Am I the only one seeing that behavior?
No time for this. Only have 96 mB of memory in this old P233 stinkpad. Product almost instantly takes over all the cpu cycles it can find.
Firefox 1.5 is outta here. Opera is fine and it looks like FF 1.07 will be OK. If I wanted windoze-product-behaviour I would used windoze.
If this is a feature (of which I've read on the firefox dev site also)
how come on my Win box Firefox takes up 180+megs of memory (as it is right now)
with one window open for the last two hours, going to 2-3 websites? (no tabs this time)
I'm currently running FF 1.5.0.1 on the latest and greatest WinXP Pro, and wondered why my recently installed vid-capture stuff was stuttering, but only when certain webpages are open in FF tabs. /. pages and according to the task manager, FF is grabbing a helluva lot of CPU time- jumping between 40% - 80%. /. thread I was reading and Firefox dropped to 4% - probably that annoying 'ServerBeach' ad at the top of the /. page...
Right nowI have 3 tabs open- all
Hah! I just kiled one
I have a gig of RAM but only a 1100 MHz Athlon.
If Mozilla (or perhaps someone here) can't tell me how to fix THIS feature, I'm going back to IE...
.
- aqk
F U
How does this explain why firefox eats more and more and more memory when left alone.
If I leave my computer on and come back the next morning, with no new pages having been loaded, the browser is suddenly taking up like 400 megs of RAM.
That can't be explained by caching tabs.
Hasdi, I don't know whether what you said is the correct theory or not, but this is the first time in 3 years that someone has put forward a plausible theory. That's what we need.
Definitely that fits the facts as I know them. Something is trashing memory where a timer constant is stored, so a routine is being called too often.
I took a nap instead of closing my Firefox windows when it was at 41% CPU, and now it is 92% CPU. Still enough CPU power to type, however. But auto repeat is slow.
One of the problems in characterizing this bug is that people believe that memory usage is important. It isn't. I will happily buy more memory. The problem is not memory usage, but unreasonable memory usage. That's associated with the CPU hogging bug.
I definitely believe everyone who says they don't have problems. However, to make good theories we need more facts about when Firefox is buggy. We need to have more facts so that we can eliminate some possible theories.
No Firefox developer has tried to duplicate the conditions that cause the bug, apparently. It is obvious from reading their replies that no Firefox developer has even read all the comments by people who have problems. They can't make viable theories if they don't know the facts.
Some bugs are just this tough. That's the reality of programming.
That's the kind of clues we need if we are to develop theories.
That's why all the discussion. Firefox is GREAT! That's why we want the bugs fixed.
Memory use is not the big issue. It is the CPU hogging bug that goes with wild memory use that is the issue, because that makes you close all Firefox windows and tabs.
You are missing the point. We love Firefox, and we want to improve it.
Every time I close all the tabs in my browser session except two or three, then check a few hours later and see that Firefox is sluggish and hogging a few hundred megabytes, I go to the police and ask them to take me into protective custody. I'm obviously a danger to myself and others. When I'm not responsible enough to seek psychiatric help, I just stare at my monitor and tell myself, "You only see three tabs there, but that's because you're crazy. You still have all those dozens of porn tabs open. You just can't see them because you went blind masturbating."
Seriously, what's with all the song and dance? Firefox obviously has at least one problem, probably several, that leads to bad performance for many users, under certain circumstances. Call it a UI problem, call it a documentation problem, I don't care, just call it a problem. Don't call it a feature or a misunderstanding. Don't pick a feature that can't account for many of the reported problems and say, "Aha! This is THE Firefox memory leak that's bothering everyone. See? It's a feature!" The denials and talk-arounds on this issue are what you would expect from a political party, not an open-source software project.
Of course, I only know all this because I use Firefox. It's the best. The memory problems would only be a minor annoyance if I didn't have to constantly read about how I'm crazy or stupid.
... then type session to find browser.sessionhistory.max_total_viewers. The default is -1. Double click it, change -1 to 0, and click the OK button. Notice that the status column changes from "default" to "user set".
Don't try to downplay the real problems with this. It still doesn't explain why on Linux when I surf majorly with Firefox the X server process is after couple hours some 3 gigabytes (!) big and then I have to restart it (because everything works horribly slow already)
First off I like Firefox and its my primary browser of choice. HOWEVER this calling a bug a feature doesn't half remind me of a certain other company I could mention (and several Dilbert cartoons).
;) ).
If this feature is for my benifit then let me decide whether to use it or not. Apart from that it does not explain why when I leave firefox idle with only one window open on a simple HTML page over time my memory useage goes up...
Stop hiding behind feable excuses and actually work on reducing the footprint firefox uses... FF is suposed to be a lightweight browser alternative to the usual browser bloatware - it is failing at the moment (rather like my spelling
--- Users are like bacteria -> Each one causing a thousand tiny crises until the host finally gives up and dies.
Using a lot of memory is not a memory *leak*. A memory leak is where memory is allocated but the pointer to it is lost so the memory doesn't get freed.
firefox currently sitting at 0% cpu usage. perhaps you should upgrade your pentium 133 :)\
Get over yourself. There is clearly a bug here; I've experienced it with multiple versions of Firefox, and it happens to me with Thunderbird on almost a daily basis. How Thunderbird/FF manages to suck up 100% of a P-M at 1.73GHz is beyond me, as is why this bug has persisted for at least 2+ years. It's a documented issue, and it's plagued FF/TB precisely because it's hard to reproduce.
From what I've heard, the Gecko codebase is a massive mess. No wonder Apple chose KHTML when they designed WebCore.
I often find that, when I leave Firefox (Windows) running overnight, it'll be using 100% of CPU time when I return in the morning. However, killing Acrobat Reader normally seems to sort this out. In fact, almost every time I've seen Firefox lock up, killing AcroRd32.exe will fix it. Not sure if this happens to anyone else, but might be useful...
Opera doesn't take "shortcuts" at all. Just because you can point out a couple of bugs in Opera doesn't mean that your flawed analysis is correct.
You clearly know nothing about Opera, but are rather busy trying to defend Mozilla's performance problems compared to Opera.
Clever signature text goes here.
I find that if I set browser.sessionhistory.max_total_viewers to 2 it uses less memory if it's left at the default (I have 1GB RAM). If I use Fasterfox's Clear Cache function, it compacts the memory usage even more. There is still some leakage but not as bad as the default -1.
Um no, Opera does not have the same memory issue. Opera is a lot better at memory handling than Firefox, apparently.
Clever signature text goes here.
Considering the hooplah that goes along with it, firefox underperforms on basic tasks when compared to KDE's Konqueror.
What's worse is that this command firefox ./index.html tries to open http://index.html/ rather than file://index.html. Meanwhile Konqueror behaves correctly.
First everyone complains that they should be as fast as possible to compete with IE, which is pretty fast.
When they do it the get slapped for using too much resources?
But I see a good point. I also would like to see new developement halted for some time to catch bugs and security problems. This would also help plugin developers to catch up. New features could be developed in plugins anyways.
im not trying to be funny but why wouldnt they code up firefox in Java or even (dare i say it without being flamed out of existence) C#??
Java would make their development alot easier across platforms, also latest java version 5(or 1.5 as some call it) is quite fast
heck as we speak i have azureus, eclipse and zend studio working away running on the JVM only taking 50MB of memory, and when i close the programs i have peace of mind
How come that this article about FireFox has stimulated debate, with suggestions of workarounds, discussion of how valid/useful this 'feature' may actually be, whereas if the browser in question was IE, 99.9% of all responses would be "IE sucks, MS must die"???
Its a non-issue. As explained on a note at the end of the article, its a per session setting, not per tab, so the entire article misrepresented the "feature".
"Edit: In the comments, Boris and David pointed out that I misread the code, and that this is a global preference so that there are no more than 8 cached pages for the entire session, not per tab. My initial posting had claimed that it was per-tab. Oops!"
If Firefox has memory leaks (and I think it does), this is not what is causing it. If it were, however, per tab, as the article originally claimed, then it would have been a problem, because the more tabs you open, the memory usage increases at an alarming rate, if it has to keep up to 8 history pages cached.
Nothing to see here. Move along.
-dZ.
Carol vs. Ghost
I got sick of seeing huge amounts of RAM get sucked up by Firefox. Yesterday I had upwards of 30 tabs open in Konqueror - and about 1.8 of 2 gigs free. I honestly don't know how much RAM Firefox would have used if I had had the same tabs open. I would have been afraid to open that many in Firefox. Alas, it is a shame that the flagship (in the public's mind) application of OSS is so buggy.
The sea changes color, but the sea does not change.
I found that, too. I've disabled all plugins, but the CPU hogging bug is still worse than before.
Just so typical about slashdot, but when it is Firefox when it has a problem, people post how to fix repetitively, but never tell people to switch to other browsers, but when it is about IE when it does this sort of thing, people repetitively tell people to just throw IE out the window and use Firefox.
I don't know when people learn how to speak fair.
Somehow Thunderbird and Mozilla share this bug.
Well, Thunderbird and Firefox both use Gecko, so the problem may be there.
It's official. Most of you are morons.
Why is everyone complaining abour FF memory usage, Its fine for me, never goes above 40% cpu usage, no matter what i have running. Check out pic for more info.
Spec: G4 1.25, 768ram OS X 10.3.9
http://img206.imageshack.us/img206/7710/ff5ac.jpg
...can be found quickly, using your favorite browser, by looking at this website:
http://www.slyerfox.com/
Enjoy.
FoxPose: http://www.cjas.org/~leng/lainspotting/2006/02/pro blem-with-tab-thumbnails.html
Dunno about downthemall, though.
firefox seems to never release any memory... do you have the same problem?
Okay, I see posts regarding how Opera doesn't do this and Opera is a greater browser, smaller footprint.
So I decided to check out Opera for myself to see if my expirience is any different. Right now I'm looking at the memory usage of Opera, I've only had it open for about 10 minutes, and I notice that it's taking up 65,234K of memory. I compared that to what FireFox takes up after about the same time frame, and what a surprise, FireFox takes up 68,321K of memory.
With webpages as complex as they are, I'm not surprised that they take up that much memory. When you cache complex pages, it's gonna take up memory, I'd rather have it be fast and use memory than constantly cache files to my hard drive, and slow down my system overall.
root@allevil:~#
..because I (and many others) have 2GB or RAM anyways.
;)
This weren't an issue even when I had only 1GB. We have lots of memory, why shouldn't use it?
And what if a program computed the distance between two objects, and later on used that distance to get from one object to the other?
PLEASE don't tell me people are using hacks like that in this day and age.
MAYBE if you were working in an embedded space, and you were programming very close to the hardware [VxWorks/QNX/whatnot], and you had to use a very slow processor to conserve on energy usage/heat consumption, and every fraction of a millisecond you could squeeze out of the software was vital...
But even then, I wouldn't want those kinds of hacks in anything that came within a country mile of a "Medical Device" or a "Nuclear Power Plant" or whatever else it was that they used to exclude in the old Java license.
Is only one copy of Gecko loaded, even though you are running Thunderbird Mail, Mozilla Mail, and Firefox browser?
If you want there's even the SessionSaver extension that keeps the current windows 'open' across a restart.
To me the way that Firefox eats memory is expected, it's a big complicated program trying to follow a lot of very silly 'standards' and 'normal practices'. What surprises me is that it's very difficult to crash in a program this size and complexity that's a VERY good job.
But that's just bad programming, not a bug. Now for a speed-up bug:
Which code will work faster?
this:
for(int i=0; i<num_elements;i++)
{
redraw(element[i]);
}
or this:
for(int i=0; i<num_elements;i++);
{
redraw(element[i]);
}
Sanity checks take time. Omitting them saves this time. Doesn't matter if the code doesn't do the checks intentionally (design) or by omission (bug), it will be faster. Since evidently raw memory shows through from under an absolutely positioned element once moved, that's a result of a missing sanity check. The check would reveal a missing piece that needs to be rerendered or brought back from cache (which would take time). Instead, the part isn't re-rendered. I don't know the motives of Opera authors that cause this. I don't care if they did it intentionally or just forgot to fix it. It is an error that results in faster, but buggy drawing of the pages.
Anagram("United States of America") == "Dine out, taste a Mac, fries"
the likes of acrobat and flash have on firefoxes memory leakage?
note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
Thanks for that post since I've been seeing loads of CPU overload issues too. I thought all this time it must be just me, and even figured must be an extension I used since no way the core code could have this problem all these years. I often get CPU hitting 100% when doing absolutely nothing. I do tend to have loads of tabs open. It hits 100% and stays there for what seems like ages (15-30 minutes) before calming down. I have quit all tabs but one but it rarely helps. I usually just quit the program and restart.
Please get the headlines straight. A memory leak is not freeing memory that is no longer used or needed ever. This is often accompanied by destroying the references to it instead of freeing it before that is done. That memory then can not be recovered until the application is terminated and memory is restored to the operating system.
Growing memory demand is not a leak! Otherwise the archives of 10 years worth of data on most corporate networks is considered a 'leak', as it will just keep growing. As long as you know that it's there and can access it in the future, it's A-Okay.
Given that, there should of course be a deemed maximum size at which point such pages are written to the disk, though then again, the OS probably does that anyway.
One worry is often seen in both Windows and UNIX-based operating systems is that memory even when freed in the application remains allocated to the application. So allocating 500MB of memory and freeing it still means that 500MB of memory can't be used by anything but the application that originally allocated it. This worries me somewhat in regards to the memory demand on a multi-user system. A brake needs to be put into place.
Nonetheless, it's not a bug, or a memory leak. Just an oversight.
-M
when you see the word 'Linux', drink!
simple compression/decompression should be faster than re-rendering
On my Debian system, Opera's page loading speed just blows away Firefox. It's so obvious it's not even worth measuring.
GCHQ Quantum Insert installed. If only our tongues were made of glass, how much more careful we would be when we speak
The download feature on firefox is just broken for me. When I download something, it spikes to 100% for about 30secs in which time firefox is unresponsive, then it opens up download dialog. This is on an Atholon 750
K-Meleon works great for downloading stuff, very fast, the UI isn't quite as polished as I would like though.
"brxref
More like "I love Firefox so I want other people to spend their time to improve it for me." Or do you have a patch posted somewhere thats fixes this problem for you that I do not know about?
You are not a Firefox "customer." Either pull your weight or save your complaints for helpful bug reports. Discussion on /. never helps anything.
Open Source Sushi
But the problem is, someone needs to implement it. And that someone needs to also have a compiler that they can modify in terrible, terrible ways. It also would help to be an expert in designing thread-safe, interruptable heap compaction algorithms. Now, if you were in a position to do that, would you bolt this on to C++, or would you put that effort into a different language?
Isn't this why we have operating systems? To give us things like "thread-safe, interruptable heap compaction algorithms"?
The way you're describing it, what you've got is essentially an operating system within an operating system.
Of course, large software programs [like an Oracle database] tend to become operating systems within operating systems, and, of course, that's why their performance is so atrocious. [Oracle ought to just write their own OS for Intel/AMD and say to hell with Windows & Linux].
This leak, or whatever it is, was already present in early versions of Netscape. It got fixed, but apparently it was reinvented in Firefox. Unless of course I'm doing something really wrong in this script, but I don't see what it could possibly be. Anyone who knows how to fix this would be really of much help. Otherwise I can only hope that this bug will ever be fixed.
Ok, so if we're going to do this right, lets take all these people that violently say "It leaks!" and put them in one group and all the folks who say "It doesn't leak, you guys are on crack!" and put them in another. Have them keep a log, every so once in a while, write down a note that says what page you have open, whats going on in said page, and how much memory the browser happens to be using.
Sounds like a simple idea, but I think we've left the debate too closed to science and reasoning, and everybody has used it as a forum to debate which browsers are better than others, which is usually not based on anything more than how the user feels about the parent company, and not really on technology.
Windows has more viruses because linux has more virus coders.
I did all the config changes listed in the comments, and nothing makes Firefox not hog my RAM. Something with 1.5.0.1 perhaps..?
I'm a geek girl. Seriously.
At least, it has been according to the unofficial 1.5 changelog. The list of Mac-specific bugs fixed includes:
Firefox rationalization #13: I have never seen this problem. Therefore, even though many people report it, it does not exist.
Firefox rationalization #13b: If it does exist, it isn't important. All software has bugs.
Which version of Opera do you experience this with? Having been a long-time Opera user, I cannot say that I have ever seen that sort of consumption from Opera, even with 20 or more tabs open at a time. The upper bound is typically 75 MB, starting off at 23 MB or so on start up. That is with a 50 MB cache, mind you. So it is understandable that the consumption reaches up to 75 MB, when 50 MB of that is cache.
Cyric Zndovzny at your service.
Used to happen to me too. After I cleared the list of files previously downloaded, the problem went away. That list, if allowed to grow without pruning, can grow infinitely. You need to delete all the entries.
True, and he did contribute only $2,000. That should teach the rest of 'em. :)
Of course it's a feature, i cant believe anyony thought otherwise.
Quidquid latine dictum sit, altum sonatur.
You said, "If you can't help them reproduce it, you can't expect anything from them."
In 3 years of submitting bug reports, no developer has ever asked me for help in reproducing the bug.
There are already plenty of clues, I think. For example, the bug appears in Thunderbird, Mozilla mail, and Firefox browser, and the CPU hogging problem transfers itself from one to the other. That shows there is some code that is shared, apparently, or they are all corrupting the OS in the same way.
Bunratty, By far the biggest issue is that you have an anger problem. You imply that I say things that I know are not true. That is incorrect.
In any case, they are discussing a beta version of Opera.
Mozilla products have had a CPU hogging problem for 3 years in the released versions.