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
Hey it might get someone laid, you know they could flash out the changelog at a local bar and say to a chick: "I did that! I reduced the memory usage of Firefox!" And when that hot sexy blonde rolls her eyes, they'll probably end up with something that is a cross between a horse, an elephant and Dick Cheney.
Tes
Can anyone else verify this on Linux?
https://bugzilla.mozilla.org/show_bug.cgi?id=404688
eh.. I read slashdot all the time and I have 1gb (2*512's).
http://blog.pavlov.net/2007/11/10/memory-fragmentation/
An interesting read on how memory fragmentation adversely affects FireFox... & why/how.
APK
P.S.=> I also recommend Opera for these reasons (less security holes period, & the 1 it had yesterday? Patched yesterday too... fast!)
SECUNIA DATA ON BROWSER SECURITY (dated 11/20/2007):
Opera 9.24 security advisories @ SECUNIA (0% unpatched):
http://secunia.com/product/10615/?task=advisories
----
Netscape 9.0.0.3 (0% unpatched)
http://secunia.com/product/14690/
----
FireFox 2.0.0.9 security advisories @ SECUNIA (29% unpatched):
http://secunia.com/product/12434/
----
IE 7 (latest cumulative update from MS) security advisories @ SECUNIA (37% unpatched):
http://secunia.com/product/12366/
----
Those %'s are the latest for FireFox 2.0.0.9, Netscape 9.0.0.3, IE7 after last "patch Tuesday" from MS with the "CUMULATIVE IE UPDATES" they have (see the security downloads URL I post in the 12 steps above to secure yourself), & Opera 9.24... all latest/greatest models.
So, as you can see?
Well, NOT ONLY IS OPERA MORE SECURE/BEARING LESS SECURITY VULNERABILITIES?
It's faster too, on just about ANYTHING a browser does, & is probably the MOST standards compliant browser under the sun (not counting HTML dev tools). This is borne out in these tests:
http://www.howtocreate.co.uk/browserSpeed.html
AND, yes others (most recently in Javascript parsing speeds, oddly enough, lol... given the topic of my post here that is), right here:
http://nontroppo.org/timer/kestrel_tests/
Opera's just more std.'s compliant, faster, & more secure than the others... so, "where do you want to go today?"...
apk
What I really care about is how it has changed on the linux platform (where I've never had an issue with it). Is it going to be an improvement there too?
I installed it this morning. Twice so far it has gone mad, chewing up all the memory on the machine. I found with top that it was taking 80+% mem on a 500M machine, and that's with 2-3 tabs open and only four or five pages of history. This of course drives the machine into swap thrashing and makes it difficult to even do anything to kill it.
Talking of which, it won't die. Three of the four times I have shut it down with the X on the window border, I have been left with a zombie firefox-bin process which I have to kill by hand. And this is which switching between versions 2 & 3 tying to figure out exactly why a drop-down list doesn't work in FF3 (it does perfectly in FF2).
This is on Ubuntu Gutsy. Maybe the Windows version is more stable, but the Linux one is not useable for me. Let's hope they fix it before release.
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
Wow, that sure is some sloppy programming...How can a simple web-browser use almost 100Mb of memory?
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.
How can someone be worried about -/+20MB memory usage of application that actually does something with it then be using Vista which does not and uses a hole lot more...
Well opinion or not I wouldn't mind a browser using 400MB (20% ca on most of my machines) if it meant snappier history/rendering with less CPU usage.
They should add the "Virtual Memory Size" column in Task Manager and use that for comparison. It better reflects actual memory consumption.
The "regular" "Memory Size" column is the "working set" - so its possible that IE or FF 2/3 took more during page loads that hasn't been reclaimed by the OS because no one neededed it.
To see how this can be bogus, try minimizing all the windows for an app and watch "Memory Size" shrink as the working set is paged to disk. "Virtual Memory Size" won't change. See here for more info.
Additionally, one (probably) should disable toolbars/extensions - depends on what you're trying to test, of course, but IE's more likely to have some bogus BHO or toolbar installed by third parties (like Google, Yahoo, AOL, etc.) that are actively sucking RAM; which affects the steady state.
One could argue that's just the real world - but the intent is to compare *browser* efficiency?
----
graphically speaking
graphically speaking
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.
and I read slashdot and I have 256mb (2*128) in my laptop. 100mb vs 60mb means a lot to me.
OLPCs laptops have only 512mb.
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.
is using 14 MB (Ubuntu)
You just got troll'd!
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
It takes a lot to load on Vista and has a splash screen about canceling or allowing something....
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.
Nothing wrong with making a blog post about 5 minutes worth of work that really amounted to nothing. Blogs are always full of brain farts.
But, then posting this on slashdot...thats an entirely different type of stinky brain fart.
Was this a slow news day?
CC
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...)
12 tabs, 10 minutes, 133megs, but still stable and fast. FF is still my main browser though
http://www.CelloFourteGroupie.net
Here is what you are searching for : http://www.microsoft.com/technet/sysinternals/utilities/processexplorer.mspx
Stupidity is the root of all evil.
How much RAM did the Firefox 3 box have free after leaving it running a few hours?
All three leak like the filthy, smoldering piles of shitty software they are. Try Opera - sure, it has its bitchy moments, but atleast it's properly programmed.
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.
To be honset i can live with big memory consumtion, but i cannot agree on cpu usage. Quick test - go to [mmorpg.com] site (widely known website), then check cpu usage (im sitting on win xp). I get almost constantly 50% usage by firefox.exe process
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.
Why are you leaving your computer turned on overnight? Modern operating systems have a save session function. We aren't talking about a server, but a desktop, right? Turn it off, help save energy, help lessen air pollution. If you have to work at home, just get a laptop and tote it around with you then.
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.
Memory leaks are of course always bad and should be fixed, however, I have to say that a much more pressing issue is the tendancy for the interface to lock up ( especially on less powerful systems ) if one tab gets stuck loading or has to deal with a poorly coded javascript.
Mind you it is perfectly possible that the two issues are related, and since my knowledge about the inner workings of firefox are, to put it very mildly, limited, I suppose I can't really judge what kind of changes would be hard to implement and what the security implications would be etc.. I would however argue that the browser's interface failing to respond when it encounters a poorly written/ bloated webpage is a more devestating problem than a larger than necessary memory consumption.
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!
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
688 bob 20 0 483m 88m 26m S 0 2.2 1:47.84 seamonkey-bin
735 bob 20 0 21060 3792 2316 S 0 0.1 0:00.00 lynx
I think that whichever number you take, lynx is the clear winner. Eat your heart out! Though I am a bit at a loss to explain the 21 megabyte virtual image. Maybe it uses that novel hundred-buffering technique...
In OS X, I had to kill it when it used more than 600MB of real memory. I opened slashdot.org and dpreview.com and left it open for 15-30 minutes. Pathetic.
I would be curious to see how they both compare on badly marked up, but renderable HTML, and XHTML. Normally XHTML should require a smaller memory overhead, than HTML, because HTML needs so many special case handling in order to handle badly marked up websites.
Jumpstart the tartan drive.
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.
It seems to be speeding up. Now it sucked up 500+MB in about 5 minutes. No extensions installed. Think Java and C# are slow memory hogs? Try Firefox! They should give it codename Cartman.
"The fight for freedom has only just begun." - Geert Wilders
If memory isn't in the working set, is it really hurting performance? For the vast majority of users, I think not. And the difference between browsers is definitely too small to care about. Besides, it isn't like anybody is limited on swap space.
4GB? Are you nuts? 1GB must be enough for everyone.
Patents Drive Free Software as Hurricanes Drive Construction Industry
Based on this and other encouraging news, I slapped it on the old desktop at work - where it subsequently tanked. Not sure why, and I don't have time to deal with it today, but it pegs the CPU at 85-100% and runs upwards of 800 MB's of RAM. I tried waiting it out, no joy. I tried dumping all of the cache, uninstalling, clearing IE's cache, rebooting, reinstalling. Still no dice. Even on a blank page (open new tab, close other tabs) it uses this level of resources.
My desktop is unusual, to be sure, but firefox 2 has always been fine. Perhaps later I'll find the link. Meanwhile, what should I have expected, it IS a Beta...
Meanwhile, FF3 Beta 1 is working perfectly on my laptop, and is much, much lighter.
They should also try loading bunch of images and swf's at the same time. Sample of this site is http://canz.net/
and no, it wasn't meant as a joke
* Winners compare their achievements to their goals, losers compare theirs to that of others.
Not all of us have the luxury of going out and just buying more memory.
I run into memory problems easily on my work machine, WinXP w/1gb ram. And getting this much was difficult! A typical work session will have:
- Firefox 2 with 3-5 windows into different email and PeopleSoft instances
- WinSQL logged on to 1-2 database instances
- Excel with nVision (PeopleSoft) add-ins, commonly 2-3 relatively small sheets open
- xplorer2 lite (file manager)
- Palm Desktop (PIM, Scheduler)
My personal WinXP/PCLOS dual boot is hardware maxed out at 2gb ram. I'm looking forward to the lower memory requirements of FF3.
If I am not for myself, then who will be for me? If I am only for myself, what am I? If not now, when?
Firefox 3 on my old MS 2000 PC at work took up 280MB of memory in twenty minutes. I had four tabs open, iGoogle, wordpress blog site, and two screens of an internal ERP system.
Considering this old system only has 324MB and I had email and Excel open already, I was stopped dead. I know it's a beta, but please. Flood the memory in 20 minutes?!?!
Currently Opera with eight external tabs - 14 MB. Firefox 2 with two tabs external three tabs internal- 142MB.
It's about time they fix the memory leakage in Firefox.
"During My Service In The United States Congress, I Took The Initiative In Creating The Internet." -Al Gore
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.
Javascript.
You don't write huge portions of a browser in javascript. Seriously, wtf are they thinking?
I'm sure if the entire codebase was in C and only ran javascript present in webpages that the browser would be lean and mean, fast and efficient.
I will not recognise comments on the insecurity of C. There is only insecure and poorly written C code. Relying on a platform on a platform on a virtual machine (like java) to enable you to write lazy unsophisticated code is the lamest fucking excuse I have ever heard.
If Firefox dumped XUL and javascript and actually wrote some quality real code for a browser in C, then everything would be just fine.
Anyone reading slashdot already has 4GB or more
I call bullshit.
desktop versions of 32 bit windows do not support more than 4GB of physical address space meaning ram usable to the OS is limited to some figure below that (exactly how much depends on the exact hardware configuration). Even if you are one of the minority that uses an OS that supports more the chipset may not. For laptops the situation is even worse, even if the chipset and OS support 4GB of ram 2GB sodimms are not cheap and I'm not aware of any laptops that support more than two modules.
On a system with 2GB of ram (which is the most many users can easilly and economically install) 200MB is 10% of your ram, that is not negligable.
note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
After Opera crashed on me for the first time as I was searching for "Firefox" (must not have much self-esteem), I installed the FF beta and proceeded to read the comments to this and the other firefox-related story. Wondering about some sluggishness, I fired up the task manager and was surprised to see a 99% cpu consumption and a memory consumption that was rising by megabytes per second... while the beta wasn't doing a thing but displaying two slashdot stories with comments. Not even the fancy new comment system. I killed it at around 900 mb. The uninstall procedure is nice, though.
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.
Whoever manually adds the tags to these sites misspelled one.
I'm sure that should say "whatisopera" not "whatiopera"
Just a heads up.
If you can read this, I forgot to post anonymously.
I would say so, it might not hurt the majority of /. posters, but for anybody that has only 512mb of ram on XP, it definitely causes problems relatively quickly.
IE does the same thing, my parents, prior to me educating them on the issue, would leave IE open for days at a time, by the end the computer would be so sluggish that there was pretty much nothing one could do but close the program.
So no, this isn't an exotic problem, often times non geeks will be hurt far more than those that are more inclined.
I downloaded the firefox 3 beta and tried to restore my bookmarks. Firefox took 95% of my 4GB of RAM and hung the system pretty well; I had to kill -9 the main process to recover my system. I won't be using version 3 until I know the memory use has at least stabilized.
In addition to what Hedward replied, I was mostly saying that the "working set" makes it difficult to compare apples-to-apples because you don't know the "real" state of the memory for one app vs. another: allocated and actively in use, allocated, but safey "page-able", or freed, but not reclaimed by the OS
graphically speaking
He's on Vista. Thats "Memory (Private Working Set)" vs. "Commit Size". (aka "Memory - Private Working Set" vs. "Memory - Commit Size", for some reason different names in the "Select Columns" dialog) At least I assume that's the column being measured, it's not clear from the screen shots.
And given that FF2 keeps a very large percentage of its virtual memory in its working set (I'm currently at 136/149 MB), this is still very interesting. It would be great to know both.
Why is memory use of a browser even relevant?
o Multiuser systems where several up to many users are
using a browser. If you have 100 users on a box, where
everybody uses a browser, it does make a big difference
whether these browser processes on average need 40MB, or
400MB.
o systems on which you are running other memory-insensive
applications
o most of the time its not memory actually needed by the
browser to render the pages the user currently views,
but some sort of memory leak or memory access error.
Some time later, the browser then crashes.
o swapping greatly decreases performance of various
applications, say, compilers.
o if the developers can't even manage memory properly,
what else is broken?
Thomas
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.
Who cares if its faster or uses less memory? I care more about FF working correctly and rewrites of rendering engines to not be synonymous with breakage of existing sites.
Theres still quite a lot of CSS related breakage I would have hoped they would have addressed in the ALPHA stage before releasing a BETA quality browser into the wild.
I guess I'll be having more fun submitting bugzilla reports to people who are interested only in closing tickets as quickly as humanly possible while finding any insane reality defying reason to do so.
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...
Or 3.5 GB after memory mapped IO takes its share of the 32-bit address space :(
Hmm... I downloaded Firefox 3 beta 1 yesterday after reading Slashdot. Everything did look fast, and I was happy. I have made my peace with Firefox using a LOT of memory, and if everything is fast, I don't care.
:) This includes Slashdot.
Then I closed everything except 1 terminal of URxvt (also, I run Windowmaker) and left for my home. I came after around 22 hours and opened Slashdot to read this story as the first thing. Now the ironical part, just when I started scrolling down, Firefox starts to crawl. My hard disk starts making noise non-stop and I have to go to tty1 to kill firefox-bin. "top" shows me that firefox-bin with 1.2 %CPU and 99.4 %MEM. The other process it kswapd0.
Then I come back and see this thread (by that time only GP had posted and I start replying to him. I type 1 sentence and ka-boom! Everything stops again... this time I wanted to take a screenshot but even executing "Run" command took 2 minutes. So I go back to tty, kill firefox and go to a restuarant.
As of now, it is running fine, as I am able to type my reply. Draw your own conclusions, but I am back to opera for normal sites I visit.
PS: I use Firefox with Adblock plus and noscript, nothing else. I use Firefox for only those site which I don't want my boss to know
And then how effective would karma whoring be, huh?
You should have said so.
So ummm do they still blame in on BAD addons? Or do they finally admit the truth that Internet Explorer is better?
And now watch the Chinese censors (sorry moderators) mod this down reaching a censorship orgasm.
I think Firefox needs a new naming scheme that makes explicit what platform it is running on, since people so often say "I'm running Firefox and it sux thusly" without identifying the platform. Then we would mostly "I'm running Firepenguin and it works great for me" and "I'm running Fireborg and it suxors." Then we could simply say to the latter group: "I'm afraid you implicitly gave up any right to stability, security or reliability as you chose an OS that quite has no commitment to these concepts." Yes, I know some people have experienced issues on Linux boxes as well, I'm merely saying that the number is certain to be quite disproportionate.
:-)
That being said, many posting here have a little knowledge about how memory use and performance correlate. A little knowlege is a dangerous thing.The assumption that less memory use is better is absurd. If I have 1.5 Gig free and my browser is spending its time conserving memory rather than rendering pages that is VERY WRONG. If it is Linux, use the memory you need and let the Kernel handle swapping, etc. Don't WASTE it, but don't waste memory by not using available memory either." That is a much bigger waste.
Conserve memory when memory needs to be conserved , and use more memory when plenty of memory is available.
A slightly off topic aside, hopefully eye opening to some, exemplifying how a little knowledge can be a dangerous thing:
I once requisitioned 16 Megs of RAM to add to the 16 Meg I had back in Win95 days. The typical person with minimal knowledge who thought he had a lot of it was trying to block my order, because he added 16 to his box and it still said 0% free so he concluded that "Windows just allocates and uses all the memory you give it." ROTFLMAO. I tried to explain to him about swapfiles and show him that the swapfile size decreased in proportion to the added RAM and why that was a HUGE win from a performance perspective, alas to no avail.
He told me he would be watching for my P.O. to block it, and I told him to have fun watching it go right through. I explained things to the CEO, who was not a complete moron, and he did in fact ultimately watch with gritted teeth as it got processed under direct approval of the CEO of the company. I figure we spent 10 times the money wasting time trying to address his ignorance than the actual RAM costs. The guy was quite an ASSet to the company
Guns don't kill people; Physics kills people! - John Lithgow as Dick Solomon on Third Rock From The Sun
Yeah, I experienced exactly the same. back to safari... there's nothing as good as it.
Welcome to the year 2007, where the User-Agent header has no effect on the content served to browsers.
Yeah, those results are accurate alright. The author mentioned nothing about analyzing the page content returned by the ZDnet server for differing User-Agent headers. Returning browser-specific content is a common practice used by many commercial websites.
(posted with a measly 2gb)
Comment removed based on user account deletion
The sites these "testers" choose are hardly able to get any browser really worked up. They need to hit some of the uglier MySpace and Bebo pages loaded with all kinds of crap and see what happens. Preferably the stripper ones with lots of huge Adds banners and porno music videos. That's like natural selection for browsers, either they make it through the first few minutes of opening them or they just die, mercilessly.
My personal best with Firefox 2 on Windows was 780MB of RAM "Memory Used" and 785 "Peak Memory" on a 1 GB laptop before I killed that browser sessions like the mad dog it was.
Da Blog
I've noticed that under Windows, applications tend to not release their virtual memory/swap file allocation. As in hardly ever.
I can run a firewall or AV program, for instance, and short of rebooting, there's just no way to reclaim it. Hence the memory leaks. ie - it's a glitch in Windows itself that so far I haven't been able to find a way around. Even memory manager programs won't free or touch this. So you get into silly situations where you have 1 gig virtual and 200 megs physical despite having 1 gig of ram.
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
Sounds like a feature to me. Best to run it regularly then :).
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...
is the underlying XUL runner to blame?
song bird is a music player based on the same xul runner and it eats up memory similarly.
May be firefox needs to be built from ground up? like Opera
I'm happy with my 4GB of RAM and 64bit Vista! Although I agree that memory is getting cheaper, and I'm fortunate enough to have a ton of it, that's still no excuse to just let programs consume as many resources as they can. I'm not saying FireFox is unreasonable, but I am saying that sloppy coding is getting far too common. We as IT / SE types need to help put a stop to some of the bloat that comes about as a result of lazy coding. ...Not everyone has a brand new machine. My mom's is 5 years old - she wants to surf the net too.
You are using English. Please learn the difference between loose and lose; they're, there, and their; your and you're.
With Firefox 1.5.0.12 on Windows XP SP2 and six windows open the VM size is less than the Memory size.
I wonder if there are some shared memory segments, or memory mapped I/O.
No time to flush out with SysInternals. I have a turkey to prepare!
Agreed, I doubt anyone has upgraded their harddrive in order to increase their virtual memory pool.
He's not qualified to track down leaks, since he's run across so few of them. He is perhaps qualified to rewrite the whole steaming pile with modern C++ idioms and libraries that don't leak in the first place. Some problems you can't engineer out, you can only not engineer them in.
Done with slashdot, done with nerds, getting a life.
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.
About a week ago I installed the latest Seamonkey. Since then, I've been using it as my primary browser. Speed and memory consumption are like night and day vs FF2. My only real complaint at this point is the relative dearth of extensions and themes for it, but maybe that situation will improve. I have encountered few, if any, rendering issues with Seamonkey, and the overall browsing experience is as good as FF in my opinion.
I've been running the thing for days now w/o a restart, and I currently have 11 tabs open and have had about half of them open for at least 24hrs and the other half for maybe 3-4 hrs. Under Linux (Ubuntu 7.10 x64) I see:
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ PPID SWAP COMMAND
14334 eric 15 0 220m 113m 24m S 0 5.6 26:47.68 14330 106m seamonkey-bin
In contrast, an average session with FF2 quickly eats up 700m-900m.
Seamonkey imported all my FF bookmarks, no problems, and I have the important (to me) extensions running - NoScript, Adblock+, Forecastfox, Chatzilla, plus a retro Orbit theme, and I'm a happy browser.
Why are we worrying about ram usage when we have multiple gigs of ram these days?
When "working" and "many" turn into "done" and "any" then the general populace will be not only satisfied but will in fact jump for joy. FF is a great piece of software and memory problems are often hard to kill, but there isn't a memory problem in existence that can't be found with a good profiler, so I'm going to keep pointing at the FF dev team (which is way smaller a group of people than the group of people having memory problems, I might add) and say: Let us know when those words change.
Uh, how about 'focus', though I will agree that some time critical issues like media burning need other methods, same argument could be made for network apps, oh damn here we go again.
Wabi-Sabi
Matthew
the firefox org is making millions (see previous slashdot articles). why don't they fix their own damn problems? they can certainly afford to hire programmers.
Irina Romanov
Also, something I noticed is that they aren't keeping any pages except the one you're on in RAM now. If you open a ton of different websites, they aren't loaded into RAM until you click their tab and then there's a massive wait (3 - 5 seconds) for it to appear. Also, if you try to close some of those tabs really fast, this delay is incurred each time and it becomes very tedious to close a large number of tabs. Granted, I know there's "Close Other Tabs" but what if you have a few you still want open, not just one. Anyways, that's a major setback IMHO, but the general speed increase and low RAM usage is definitely a plus.
The point is, it is not their problems, but his.
He is the one who is having problems extracting value from a product (which was handed to him as a gift) when using it in a particular way, which may very well not be the one targeted by the Mozilla Foundation. Just as with every other piece of free software out there, he is very much allowed to go and fix what bothers him in order to do what he wants. If you look at the Linux source, you'll find drivers for things you've never even imagined existed, and they are there because someone wanted, in order to do their business (whatever that may be), Linux to behave in specific ways in which it did not behave, so they saw to that to be changed (they wrote it themselves, they paid someone to write it, whatever)
Uh, okay, so maybe there is some hidden reason, like the parent poster is Cowboy Neal's brother-in-law, but I cannot understand for the life of me why the parent is modded "Offtopic."
Someone enlighten me.
Ignorance is curable, stupid is forever.
By 65k MB, I tend to believe that somehow you meant 650 MB, not 65000 MB.
I speak England very best
I speak England very best
The memory usage that is measured is determined by "Memory Usage" column of Windows Task Manager. It is NOT the correct method of measuring memory usage, because it only indicated how much memory is "active", not the total memory allocated by the program.
To get how much memory allocated, the correct column is "VM Size" in XP or "Commit Charge" in Vista. Actually programs such as TaskInfo are able to reduce the "Memory Usage" of any program (e.g. 5 MB only for Firefox 2). Hence, "Memory Usage" is not a good measure for memory usage.
A better memory comparison test is available at:
http://www.kejut.com/browsermemory
Since I hope that you neither omit Windows 2000 and Windows XP from the "desktop versions of 32 bit windows" set, nor are you ignorant about PAE
I quote from that MS link
"Windows XP (all versions) 4 GB of physical RAM*"
"* Total physical address space is limited to 4 GB on these versions of Windows."
Since it is the total physical address space that is limited usable ram ends up somewhere between 3GB and 4GB depending on how much space the chipset reserves for IO.
2000 advanced server and all editions of server 2003 do support more ram but I do not consider those desktop operating systems
a sysadm at a client site shut me up by showing me a system with 6 GiB of memory running WinXP. It was a Dell blade server, can't remember which model though. System properties showed 6 GiB of memory installed. And yes, it felt and was sluggish-- but it had more than 4 GiB of usable memory."
That finding contradicts the MS page you linked to and all experiance I have seen from people attempting to use XP32 on boxes with more than 4GB of ram.
It sounds like either it was running XP64 or someone had hacked out the limitation.
note: i'm known as plugwash most places but i screwd up registering that here somehow in the past and now can't register
Like I said, I was of the same opinion like you and that was the one case that I was contradicted. I forwarded to that sysadm (hopefully his email address is still valid, haven't had contact with him for some time) the link for the article, he might reply himself or back to me; if the latter, I'll copy the text here.
I speak England very best