by annnnd · 12y ago · 0 comments
That said, FF memory usage (not just pdf.js) is sometimes just insane. Granted, I only have 2GB on this Linux, but FF invariably eats most of it (with just 10-20 tabs) if left running for long periods. Interestingly enough, once I restart FF and reopen the same tabs, memory usage is far lower. Memory leak? Inefficient caching? Who knows...
Every now and then there is a version of FF that claims to be using less memory, but in my experience the differences have been negligible. So as far I am concerned memory friendly FF is something like fast Java... I am still waiting to meet one of these beasts in the wild. :)
Even better: can you visit about:memory and use the "Measure and save..." button to get a snapshot of memory usage when it gets high? You can then either email it to me or (preferably) file a bug at bugzilla.mozilla.org and CC me. Bugzilla can be intimidating, but don't worry too much about getting every field right. Just make sure the description is clear.
If all that is too hard (hopefully not!), you could try just resetting Firefox: https://support.mozilla.org/en-US/kb/reset-firefox-easily-fi.... That's not a guaranteed fix, but it does help in a lot of cases.
I didn't notice any particular pages which would cause problems, but OTOH there must be a pattern to the pages I visit. I am using FireBug, Abduction, Add to search bar, Greasemonkey (disabling now - didn't know I had it enabled), NoScript and Pencil.
Since this happens during normal course of work I would rather send memory usage patterns privately if that's OK with you. The challenge will be to catch FF when the machine hasn't started swapping yet (by then I can count myself lucky if I can still issue killall firefox). Will try to send you "measure and save" output as soon as possible. Thanks!
Selectively disabling extensions isn't the most fun game in the world, but it's often effective in working out if one is causing problems.
And private email for the about:memory data is fine. For my email address, take my HN username and append @mozilla.com.
Firefox is possibly the most memory efficient browser out there nowadays. It's just that all browsers eat tons of memory, out of necessity.
I think Firefox is getting faster but fact is that users also acclimate to new speed and expect it to be faster.
EDIT: Right now with about 10 tabs open FF is eating around 580 MB of RAM.
Personally I have about 70 tabs open, with 1.6GB of memory. This is quite good compared to other browsers I've used.
The things you mentioned all contribute, but most of all, people greatly underestimate the amount of memory required to run JavaScript code. Not so much the JITs, which don't actually use that much, but just all the objects and arrays and strings and closures.
Like all high-level, dynamically-typed, garbage collected languages, it uses a fair amount of memory. And the amount of JS code running on many sites is enormous. But people always ask "why is the browser using so much memory", not "why is this site using so much memory". Maybe because per-site memory measurements aren't prominent enough.
> But people always ask "why is the browser using so much memory", not "why is this site using so much memory". Maybe because per-site memory measurements aren't prominent enough.
Do you mean to say these measurements exist? I couldn't find them in about:memory (per-site, that is). That would be an awesome feature! I could easily kill the tabs which are eating up my RAM if only I knew which ones were doing it. Better yet, I could see if I am being reckless with memory in my own webapps.
The issue I am having is not that browser uses too much RAM. The issue is that I (as a user) am not aware of high memory usage until it is too late. Even worse, I have no clue what caused this state and have no option to learn from previous "mistakes" (if some site is using too much RAM, I could avoid it or close it when not needed anymore). So yes, per-site (per-tab?) memory usage indicators would solve my issue completely.
Thanks again for taking your time to answer, and keep up the good work! You have a great product there.
https://blog.mozilla.org/nnethercote/2014/05/14/adblock-plus...
FF's plugin system is one of its huge advantages. With IE11 at a "good enough" state now, if I'm not installing ABP I'm not going to bother switching away from IE on my machines!
That said, extensions are at the bottom of my list of reasons to use Firefox: support for the latest web standards, performance, security, text rendering quality, usability of the core UI, quality of the developer tools, etc.
It's a shame because I really do prefer it to the other browsers, for a variety of reasons.
I like "about:addons-memory" (available if you install https://addons.mozilla.org/en-US/firefox/addon/about-addons-...).