Comparing Memory Usage of Firefox 2 vs 3
DaMan writes "ZDNet picks up on yesterday's Firefox 3 beta 1 review by comparing the memory usage of Firefox 2 against the latest beta. The results from one of the tests is quite interesting, after loading 12 pages and waiting 5 minutes, 2 used 103,180KB and 3 used 62,312KB. IE used 89,756KB.""
How much does it use on Linux... err... does it run... damn!
Sorry, I'm new at this....
is using 34mb (winXP)
I'm sure that low memory usage bug will be fixed by the first release candidate.
Are they using the handy dandy Task Manager? If so, this is not even remotely accurate. In the age of managed memory, this is an estimate at best. Don't believe me. Open up internet explorer, run it a while and look at the memory usage. Now minimize IE. Watch the number drop like a lead balloon.
See my journal for slashdot ID's by year. Mine created in 2005. http://slashdot.org/journal/289875/slashdot-ids-by-year
Seems to me that memory usage must still spiral under 3 beta, otherwise how would the single page/10 min usage be less than the 12pp/5 min test? Sure, it's not as bad, but that number really caught my eye... more testing is in order if I can get some time away from the in-laws over the holiday.
"Trolls they were, but filled with the evil will of their master: a fell race..." -- J.R.R. Tolkien on Olog-hai
firefox 3 doesn't have any plugins yet, last i checked it was plugin writers who were blamed for all the memory issues by Mozilla
btw i did same test in IE7 and Opera9 and only got 30-40MB usage
BTW I never found old FireFox's memory consumption as annoying as intransigence of some sites in refusing to support Firefox and the lax/laisse-faire coding for IE only. May be because at work I usually have a couple of four processor 16GB machine for development/testing. I used to have a dedicated 2GB machine exclusively for Firefox. But that old machine's hard disk started squealing with an annoying noise so I had to throw it away. Even at home with my puny 512MB 4 year old desktop or the 1GB 2 year old laptop I get by without any serious memory issues.
sed -e 's/Chuck Norris/Rajnikant/g' joke > fact
Memory usage really isn't a huge issue for most end-users. Sure if it was sucking up 800 meg with 2 or 3 tabs open people would complain but right now people are just starting to get used to the idea of tabs much less use 12 of them. The memory usage now is hardly a system stopper for most people who only run their browser and mail client and maybe an office suite and picture viewer.
Either I got a bad build, or I've got a weird system setup. FF3b1 was using 180 megs (yes, 180 megs) of memory to load my intranet page, and would try and scream upwards from there before my poor IBM laptop (P3 800, 320 megs of ram) ground to a halt. FF 2.0.9 was using 30 megs.
I wish I could have submitted a bug report, but my machine would freeze before firefox actually crashed.
(and no, it does also take me 15 minutes to move a 20 meg file on my mac.....)
There are some people that if they don't know, you can't tell 'em.
Change is certain; progress is not obligatory.
Seems like the author is playing up to some feature in FireFox 4 that releases un-viewed pages from memory after a certain amount of time.
I bet if he re-clicked on each of the 12 tabs after the 5 minutes was up, that memory usages would go back up again.
"using less memory" isnt always desirable. I have 4 GB of RAM in my system and i'd rather if the applications USED THAT RAM, to keep application response "instant", rather than un-caching stuff, only to pull it back into memory again when I want to see it.
On Ubuntu 7.04 and 7.10 if you install the flash plugin nonfree package from apt-get flash works fine but whenever you try installing it from Adobe's site or the auto plugin installer, FF grinds to a halt on it using around 100 CPU on anything Flash related like Youtube or Slashdot's ads, disabling flash solves it, however on my other computer that is not much more powerful (slower clock speed of CPU but higher bus speed) when I installed it from the auto plugin installer it works fine getting only around 50% of CPU Max. Firefox or Adobe needs to fix this so Linux people can test the binary that requires you to install the auto-plugin and doesn't work with flash-plugin-nonfree. However, Firefox 3 is my preferred browser on my other computer and it was on Windows even more. My question is, why can't Firefox produce either a sane way to compile it (its a pain to compile it already...) or supplying .deb and .rpm for the builds to make it easier to install? Linux seems to be neglected by Firefox lately, with more strategy of stealing IE's market share then making a better browser on Linux. And Konqueror is painfully slow when on XFCE or GNOME (or just about anything thats not KDE) but perhaps KDE 4 will fix that....
There is no "disagree" moderation, and troll, flamebait and overrated are not valid substitutes
Because mostly on Windows, most people's RAM is stretched to the limit, if a simple program that people use every day (Firefox) will decrease memory usage, then they can focus on speed and in the end, if Firefox can be 2X as fast as IE, Konqueror(and by extension Safari), and Opera people will switch to it. And I actually have around 512 MB on both my Laptop and Desktop with the Desktop currently running Xubuntu and my laptop running Ubuntu 7.10 happily. And when Linux can resurrect a "dead" system like a crashed Windows system that someone may give you for like $10 that happens to have 256 MB of RAM on it and a slower but usable processor like a Pentium III, Linux can run fine on it however, if FF runs slowly, most people have little need for a computer if they can't browse the web with it.
There is no "disagree" moderation, and troll, flamebait and overrated are not valid substitutes
If I don't shut down Firefox when I leave work for the day my system will be at a dead crawl in the morning - it shouldn't do this. (The only other program that acts like this is MS Streets & Trips). I am annoyed that Firefox is painfully slower to load certain pages - I do a lot of work for an in-house Quickbase application and MSIE blows firefox out of the water performance-wise, to the point where the same page in MSIE will load 3-5 times faster than it will in Firefox.
If the g'vt kept the data on you that google does you'd better believe you'd be calling it "doing evil"
So I started using the beta yesterday, and I can say that I won't be going back to IE or FF2. It runs extremely fast, stable, and is nice and polished. It seriously reminds me of the early releases of FF, but much, much faster. I've got about 14 tabs open right now, and its still running screaming fast. The earlier /. article is no lie, it installs in a heartbeat, opens fast, closes fast, even browses fast (as would be assumed given that it uses a smaller memory footprint, though I could be wrong about that). I reccomend.
Installed and fired up firefox 3 beta 1. Went to visit www.speakeasy.net/speedtest, couldn't even hit enter. The default page wasn't even loading. My system slowed to a crawl. I checked the availible RAM, and of the 1GB I have in this system I had 2 megs free. Here Firefox was using 707.13 Megs of RAM... don't think the memory leak has been complete fixed (yes this was a windows machine...)
Here is what you are searching for : http://www.microsoft.com/technet/sysinternals/utilities/processexplorer.mspx
Stupidity is the root of all evil.
Because of that, Opera has two features you could find useful:
As you see, Opera deserves its good reputation because they are updating the browser all the time adressing all kind of issues.
(And I'm glad you posted real issues, not the same old 'extensions, extensions, extensions!')
We are Turing O-Machines. The Oracle is out there.
But I'm testing Opera 9.5 Beta and I have 42 tabs open.
Checking RAM usage, it's using 237MB right now, as reported by Process Explorer.
We are Turing O-Machines. The Oracle is out there.
FC 6 .. kernel 2.6.22.. Firefox 1.5.0.12 vs 3.0b1
./.mozilla then logged back in and fired up FF 3.0b1.. same procedure, same 12 websites and 12 minutes of idling on them
I created a new user, logged in and loaded up FF 1.5.. opened up 12 tabs and logged into these sites
www.bbc.co.uk
www.slashdot.org
www.dailykos.com
www.news.com
www.abc.com
www.foxnews.com
www.freep.com
www.youtube.com
www.youporn.com
www.liveleak.com
www.rawstory.com
www.drudge.com
Here are the numbers for ff 1.5. The first line is when it loaded up with 12 empty tabs. The second line is the 12 websites loaded initially.. and the third line is 12 minutes afterwards
3876 perfume 20 0 175m 54m 38m S 0.0 14.5 0:18.19 firefox-bin
3876 perfume 20 0 348m 124m 49m R 72.0 33.2 1:47.83 firefox-bin
3876 perfume 20 0 338m 135m 49m R 46.8 36.0 7:30.93 firefox-bin
I logged out, rm -rf
4231 perfume 20 0 202m 58m 38m S 3.6 15.6 0:11.79 firefox-bin
4231 perfume 20 0 273m 106m 40m S 59.7 28.4 1:31.37 firefox-bin
4231 perfume 20 0 254m 107m 40m S 1.3 28.5 2:27.26 firefox-bin
CPU usage seemed to be much better with FF 3B1 as well.. not sure why the difference but everything was clean...
After about 2 minutes of use, 2 or three different pages online .. the new 3.0 slowed down my entire system to a crawl, and finally to a lockup. Had to pull the plug.
.. same problem.
Rebooted (Win2K, 2.8 MHZ Pentium 4, 1GB RAM), manually fired up ye olde Firefox, went to same pages, ran fine.
Closed, re-ran 3.0
Sorry boys, not ready for Prime Time IMHO.
I just downloaded and installed FF3beta, opened up slashdot and BAM....
http://home.windstream.net/slashdot/pics/firefox3beta.jpg
--- If the bible proves the existence of God, then Superman comics prove the existence of Superman.
I'm sorry, but what did your reply have to do with the grandparent post? Shouldn't you have started a new thread instead of hopping on a +5 funny first post?
May the Maths Be with you!
I am going to guess that you have a couple dozen extensions installed on firefox and most of them you don't ever use (or even think about). Get rid of the extensions you're not actively using and see if that helps both the memory and speed problems you're seeing.
Alternatively, you could use Opera.
It breaks my pluginses, my precious!
Although I'm sure there are some Slashdotters who run Firefox on a 350 Mhz PII with 256Mb of memory, that is really not issue for me. Most people with a recent PC probably have over a Gig of memory and more like 2 onboard.
CPU utilization where the browser all of a sudden is sucking down 100% of your CPU or of a single core and/or crashes are just as important (or more). More than likely the memory leaks have related browser stability issues that can be addressed with single fixes but if the browser continues to have runaway CPU issues and crashes it will not matter HOW small a footprint of memory it uses.
I don't see that memory usage remains a problem for most users. It's just the vocal few who are having memory problems. The main problem is that these users assume this is part of the "normal" experience of using Firefox, so they complain that every user must also be seeing the same thing. They take no steps to fix or report their problems, as they consider the problem to be "well-known" and think developers must be idiots for not being able to see it.
If you're still having serious problems with Firefox, try creating a new profile and installing the Firefox 3 Beta. If you still have problems, discuss them on the MozillaZine Builds forum. If the problems do not get resolved, just switch to another browser. It's not normal to experience serious problems when browsing, so I don't see why anyone accepts it as part of the "normal" experience.
I agree that the damage to Firefox's reputation is already done. I've found that no matter how many reports come out that Firefox doesn't have a severe and obvious memory problem, the few reports that show a problem are the ones that become popular. If any of them just included instructions to reproduce the problem on other computers, those reports would be productive. Somehow, they always seem to leave that part out.
What a fool believes, he sees, no wise man has the power to reason away.
They finally managed to get the code released for the half-finished port to FLTK last month, and there's been a massive flurry of activity on the developers mailing list and in CVS. I guess no one's updated the project web page yet.
Wasn't the original point of Firefox (pre-1.0) that it was a rewrite that was supposed to use less memory and be faster than any other browser, as opposed to the browser in Mozilla Communicator/Suite (now Mozilla Seamonkey)? I have a friend who uses Seamonkey constantly and still swears it's faster than Firefox. On the other hand, I'm running several Firefox extensions, and whatever speed Firefox (2.0) is right now, I think it's worth it. (Opera tends to be very fast, by the way. I just like my extensions too much.)
That's a bogus argument. Virtual size is absolutely unimportant as far as the performance is concerned. You have a fixed amount of memory in the system and if Firefox takes up a lot of real memory, other parts of the system will feel the pain. The fact that the *real* memory usage of FF 3.0 is low means that it is not being greedy about using system resources. Every process has the full VM size to play with, so looking at the VM size doesn't really tell you much about what effect that process will have on the rest of the system.
An excellent tool. Careful using it though, as it attaches to the system through debugging hooks and hence certain copy protection systems scream at you and make you reboot, and not run it... I'm staring at you SecureROM!
For large sets, this will be our guide even unto death, for the LORD will work for each type of data it is applied to...
I'm the lead for a group of over 20 engineers and programmers that produces public safety communications equipment and have direct experience with memory leaks large scale C++ projects AND Firefox. The system we sell includes embedded devices, a Linux/Oracle/Apache server for management, and management terminals. Management and monitoring is done via web browser, either on Windows or Linux. We officially support both Firefox and IE, and both leak memory. We strictly control what is installed on the management PCs - no browsers extensions, no ActiveX components, no Firefox Ad-ons. Typical usage is to open the browser and monitor one page continuously for weeks until an alarm is shown.
Let me be clear, both Firefox and IE leak memory so badly that even on management PC with 2GB of RAM we have to require the end user to restart the browser every week. We are monitoring FF3 and looking forward to reduced memory leakage. In the referenced article it discusses reducing memory fragmentation. OK, that's a worthy goal but first fix the memory leaks. Memory fragmentation and memory leaks are related, but different beasties. A memory leak almost always results in fragmentation, but fragmentation can happen simply from an unfortunate memory allocation/deallocation pattern.
Regarding C++ and memory leaks: over 2 1/2 years we've worked on the embedded code, which is pure C++, we have hunted exactly one memory leak. And that leak turned out to be from the OS. We use Boost smart pointers, RAII, exceptions, and exception safe code. We have no trouble with leaks or fragmentation, despite a fairly high turnover rate and a customer base that would quickly notice memory leaks requiring reboot of the embedded devices.
I think we've got to the root of the problem that you and some other Firefox 3 Beta 1 testers are seeing.
Starting yesterday, we began receiving reports, like yours, of a new memory/cpu usage issue that happens shortly after a normal startup and can spike the CPU and chew up hundreds of MB of RAM. This is apparently happening to people with new profiles or in profiles that have a very outdated list of bad sites for the Phishing Protection feature.
What's going on is that soon after Firefox is started, Firefox tries to fetch updates to the site forgery list -- the lists of bad sites that allows Firefox to warn users about suspected Phishing attacks. If the profile has very outdated or no local list, as is the case for a new Firefox profile, Firefox is trying to bring down a complete, rather large, list in one big chunk rather than slowly in small chunks. This causes Firefox to consume large amounts of CPU and memory and can slow the users machine to a crawl.
This problem is due to the change in the "SafeBrowsing Protocol" which only affects Firefox 3 Beta 1 and nightly build users. If you're on Firefox 2, this isn't going to affect you.
The work-around for this problem was for us to throttle it on the server side. We've done that and if you try Firefox 3 Beta 1 again, it should be fine.
- A
Have you considered allocating resources to work on the problem of hunting those leaks and fixing them? One of the two browsers you mention provides you with full sources so you have what to work on. You seem to be one of the many people extracting value from Firefox: maybe you could put some value back...
Much as I love firefox I have to say that for me it still has memory problems. It isn't the firefox process itself but the resources it hogs in X.
Right now I'm running the firefox-3.0b2pre nightly builds and firefox is taking 236MB of virual memory. X is using 3560MB and xrestop shows the firefox pixmaps as being responsible for 2714M of that.