Firefox memory tip

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • StuartD
    Sofa King Band
    • Jul 2002
    • 29903

    #1

    Firefox memory tip

    1.
    Type in "about:config" into the address bar and press enter, and agree to be careful.
    Right click anywhere and choose New > Integer.
    Call it browser.cache.memory.capacity

    You?ll need to enter a number in the Enter integer value, but that number depends on how much memory you have (specifically, how much you want to "give" Firefox). If you have 256MB or less RAM, enter 4096 as the value. If you have 512MB of RAM, enter 6144 or 8192.

    2.
    Type in "about:config" into the address bar and press enter, and agree to be careful.
    Right click anywhere and choose New > Boolean
    Call it config.trim_on_minimize

    What this does is, no matter how much memory Firefox is currently using, when you minimize it, it will shrink right down to 10mb of used ram! It'll slowly creep back up to 50mb but not exceed that.
    Then when you restore it, it'll stay at or close to 50mb.

    Restart Firefox after you've added these values.
    This is me on facebook
    This is me on twitter
  • UFGators2007
    Confirmed User
    • Nov 2007
    • 1739

    #2
    Cool. Thanks!
    "I use the Google to pull up maps."

    Comment

    • seeandsee
      Check SIG!
      • Mar 2006
      • 50945

      #3
      if you have 1.5 GB of ram?
      BUY MY SIG - 50$/Year

      Contact here

      Comment

      • StuartD
        Sofa King Band
        • Jul 2002
        • 29903

        #4
        I forgot to mention it, probably because it's obvious (to me), but for config.trim_on_minimize, set it to true
        This is me on facebook
        This is me on twitter

        Comment

        • StuartD
          Sofa King Band
          • Jul 2002
          • 29903

          #5
          Originally posted by seeandsee
          if you have 1.5 GB of ram?
          Ultimately it's up to you, but I use 8192 even though I have 2GB.
          It stops Firefox from getting out of control but doesn't seem to slow it down at all.
          This is me on facebook
          This is me on twitter

          Comment

          • MaDalton
            I am Amazing Content!
            • Feb 2004
            • 39861

            #6
            Stuart, you ever heard of the problem that a website takes ages to open in Firefox but once it's loaded works fine? I am talking about 2-3 minutes for the first load
            AmazingContent.com - providing only the best content and service since 2003
            Monetize your content on Veegaz.com - one of Germanies largest VOD sites
            Got German traffic? We convert it into money for you!
            Email: oltecconsult [at] gmail [dot] com

            Comment

            • nosey
              Talk Hard
              • Feb 2003
              • 14413

              #7
              nice thx!

              | Domain whois privacy Free || GFY favored Hosting |
              $Chaturbate || FpcTraffic FPCPlugs || PlugRush Traffic

              Comment

              • StuartD
                Sofa King Band
                • Jul 2002
                • 29903

                #8
                Originally posted by MaDalton
                Stuart, you ever heard of the problem that a website takes ages to open in Firefox but once it's loaded works fine? I am talking about 2-3 minutes for the first load
                Yeah, ultimately that comes down to a bunch of things, including making the initial handshake (connection) and how many 'pipes' it has gathering the info and even the paint (draw) speed of the browser.... where as each load afterwards only has to do a few of those things since a lot of the info is already in the cache.

                All of these things can be managed though using various settings in the about:config.

                All Firefox users should have these settings like this:

                network.http.pipelining: true
                network.http.proxy.pipelining: true
                network.http.pipelining.maxrequests: 8
                content.notify.backoffcount: 5
                plugin.expose_full_path: true
                ui.submenuDelay: 0

                If you have: Fast Computer, Fast Connection

                content.interrupt.parsing: true
                content.max.tokenizing.time: 2250000
                content.notify.interval: 750000
                content.notify.ontimer: true
                content.switch.threshold: 750000
                nglayout.initialpaint.delay: 0
                network.http.max-connections: 48
                network.http.max-connections-per-server: 16
                network.http.max-persistent-connections-per-proxy: 16
                network.http.max-persistent-connections-per-server: 8
                browser.cache.memory.capacity: 65536

                A couple settings of note - Firefox is allocated 4096 KB of memory by default and in this configuration we give it roughly 65MB as denoted by the last line. This can be changed according to what is used.

                If you have: Fast Computer, Slower Connection

                content.max.tokenizing.time: 2250000
                content.notify.interval: 750000
                content.notify.ontimer: true
                content.switch.threshold: 750000
                network.http.max-connections: 48
                network.http.max-connections-per-server: 16
                network.http.max-persistent-connections-per-proxy: 16
                network.http.max-persistent-connections-per-server: 8
                nglayout.initialpaint.delay: 0
                browser.cache.memory.capacity: 65536

                If you have: Fast Computer, Slow Connection

                browser.xul.error_pages.enabled: true
                content.interrupt.parsing: true
                content.max.tokenizing.time: 3000000
                content.maxtextrun: 8191
                content.notify.interval: 750000
                content.notify.ontimer: true
                content.switch.threshold: 750000
                network.http.max-connections: 32
                network.http.max-connections-per-server: 8
                network.http.max-persistent-connections-per-proxy: 8
                network.http.max-persistent-connections-per-server: 4
                nglayout.initialpaint.delay: 0
                browser.cache.memory.capacity: 65536

                If you have: Slow Computer, Fast Connection

                content.max.tokenizing.time: 3000000
                content.notify.backoffcount: 5
                content.notify.interval: 1000000
                content.notify.ontimer: true
                content.switch.threshold: 1000000
                content.maxtextrun: 4095
                nglayout.initialpaint.delay: 1000
                network.http.max-connections: 48
                network.http.max-connections-per-server: 16
                network.http.max-persistent-connections-per-proxy: 16
                network.http.max-persistent-connections-per-server: 8
                dom.disable_window_status_change: true


                If you have: Slow Computer, Slow Connection

                content.max.tokenizing.time: 2250000
                content.notify.interval: 750000
                content.notify.ontimer: true
                content.switch.threshold: 750000
                nglayout.initialpaint.delay: 750
                network.http.max-connections: 32
                network.http.max-connections-per-server: 8
                network.http.max-persistent-connections-per-proxy: 8
                network.http.max-persistent-connections-per-server: 4
                dom.disable_window_status_change: true

                Give that a try based on your setup, and you should see an improvement.
                It won't "fix" the problem as the first time you load a site, it has to do a bunch of things using all this stuff.... and each load after will just load it from your cache.
                This is me on facebook
                This is me on twitter

                Comment

                • Horny Dude
                  Earn enough to buy coffee
                  • May 2002
                  • 4913

                  #9
                  Bump for a great tip!

                  Comment

                  • nosey
                    Talk Hard
                    • Feb 2003
                    • 14413

                    #10



                    | Domain whois privacy Free || GFY favored Hosting |
                    $Chaturbate || FpcTraffic FPCPlugs || PlugRush Traffic

                    Comment

                    • USUALENT
                      Confirmed User
                      • Feb 2009
                      • 1888

                      #11
                      nice tips



                      Cheap Discounted Domains


                      icq me for cheap perm link 468553619

                      Comment

                      • missipissi
                        Confirmed User
                        • Dec 2008
                        • 205

                        #12
                        Thanks - I've been having many FF problems lately.

                        Paid Search Marketing & Email Campaign Management | The Original SEO Web Host
                        Missi's XBiz Profile | ICQ: 18546111 | AIM: pissi missi | skype: missimaynard

                        Comment

                        • SuzzyQ
                          Confirmed User
                          • Dec 2006
                          • 1557

                          #13
                          Thanks for the tip. FF is running faster so far.

                          Comment

                          • qxm
                            Confirmed User
                            • Jul 2006
                            • 5970

                            #14
                            Originally posted by nosey


                            these pics just helped me forget bout all my problems...

                            ICQ: 266990876

                            Comment

                            • MaDalton
                              I am Amazing Content!
                              • Feb 2004
                              • 39861

                              #15
                              Originally posted by StuartD
                              Yeah, ultimately that comes down to a bunch of things, including making the initial handshake (connection) and how many 'pipes' it has gathering the info and even the paint (draw) speed of the browser.... where as each load afterwards only has to do a few of those things since a lot of the info is already in the cache.
                              ...
                              thanks, i'll try that!

                              but i tend to think its a problem with my website (amazingcontent.com) or the apache settings of my server since i get complaints from visitors and experience that myself. but so far i haven't figured out whats wrong

                              and it happens only with firefox
                              AmazingContent.com - providing only the best content and service since 2003
                              Monetize your content on Veegaz.com - one of Germanies largest VOD sites
                              Got German traffic? We convert it into money for you!
                              Email: oltecconsult [at] gmail [dot] com

                              Comment

                              • mOrrI
                                It's over there...
                                • Nov 2004
                                • 4208

                                #16
                                Cool tips and cool pics :D

                                Comment

                                • Jakez
                                  Confirmed User
                                  • Jan 2004
                                  • 5656

                                  #17
                                  Originally posted by StuartD
                                  If you have: Slow Computer, Fast Connection

                                  content.max.tokenizing.time: 3000000
                                  content.notify.backoffcount: 5
                                  content.notify.interval: 1000000
                                  content.notify.ontimer: true
                                  content.switch.threshold: 1000000
                                  content.maxtextrun: 4095
                                  nglayout.initialpaint.delay: 1000
                                  network.http.max-connections: 48
                                  network.http.max-connections-per-server: 16
                                  network.http.max-persistent-connections-per-proxy: 16
                                  network.http.max-persistent-connections-per-server: 8
                                  dom.disable_window_status_change: true
                                  Hm, I don't have any of the content.------ ones or the nglayout one..
                                  [email protected] - jakezdumb - 573689400

                                  Killuminati

                                  Comment

                                  • Jakez
                                    Confirmed User
                                    • Jan 2004
                                    • 5656

                                    #18
                                    Also, would you happen to know why FF sometimes won't play flash videos like youtube? It has no sound and plays like the first 2 seconds and stop. So annoying having to open IE because of this..
                                    [email protected] - jakezdumb - 573689400

                                    Killuminati

                                    Comment

                                    • Angry Jew Cat - Banned for Life
                                      (felis madjewicus)
                                      • Jul 2006
                                      • 20368

                                      #19
                                      Originally posted by nosey
                                      I've always been curious where that pic originated from. Hottie + FF = Win. But ya, good stuff Stuart, appreciate the post, I'll have to sit down after dinner tonigth and go through it more thoroughly. Yous eem to be the man for FF around here, good work!

                                      Comment

                                      • uno
                                        RIP Dodger. BEST.CAT.EVER
                                        • Dec 2002
                                        • 18450

                                        #20
                                        Originally posted by Jakez
                                        Hm, I don't have any of the content.------ ones or the nglayout one..
                                        hmm are those strings or integers?
                                        -uno
                                        icq: 111-914
                                        CrazyBabe.com - porn art
                                        MojoHost - For all your hosting needs, present and future. Tell them I sent ya!

                                        Comment

                                        • SuzzyQ
                                          Confirmed User
                                          • Dec 2006
                                          • 1557

                                          #21
                                          Originally posted by Jakez
                                          Hm, I don't have any of the content.------ ones or the nglayout one..
                                          Same here. I dont have some of those items. Do I add them and if so, what would they be?

                                          Comment

                                          • Juicy D. Links
                                            So Fucking Banned
                                            • Apr 2001
                                            • 122992

                                            #22
                                            Stuart!!!!!!!!!!!!!!! good shit man

                                            Comment

                                            • TheDoc
                                              Too lazy to set a custom title
                                              • Jul 2001
                                              • 13827

                                              #23
                                              Originally posted by Jakez
                                              Also, would you happen to know why FF sometimes won't play flash videos like youtube? It has no sound and plays like the first 2 seconds and stop. So annoying having to open IE because of this..
                                              My guess is it's the flash player plugin for your browser. I had a problem where youtube videos would crash firefox every time they opened, I finally reinstalled - actually updated flash, and it cleared up the problem.
                                              ~TheDoc - ICQ7765825
                                              It's all disambiguation

                                              Comment

                                              • JB.
                                                Registered User
                                                • Sep 2008
                                                • 44

                                                #24
                                                Originally posted by Angry Jew Cat
                                                I've always been curious where that pic originated from. Hottie + FF = Win.
                                                It came from some Portuguese blog, it's a photoshop.

                                                Comment

                                                • blogman9
                                                  Confirmed User
                                                  • Dec 2005
                                                  • 1261

                                                  #25
                                                  it doesn't work for me.

                                                  i have firefox on linux and after minimize F then htop still show me this same size of ram.
                                                  Adult industry news

                                                  Comment

                                                  • StuartD
                                                    Sofa King Band
                                                    • Jul 2002
                                                    • 29903

                                                    #26
                                                    Originally posted by blogman9
                                                    it doesn't work for me.

                                                    i have firefox on linux and after minimize F then htop still show me this same size of ram.
                                                    Did you restart Firefox after adding it?
                                                    This is me on facebook
                                                    This is me on twitter

                                                    Comment

                                                    • StuartD
                                                      Sofa King Band
                                                      • Jul 2002
                                                      • 29903

                                                      #27
                                                      For everyone asking, not all of those are set already, so you'll have to add them, just like the config.trim_on_minimize option.

                                                      So, for those that you have to add, here are the rules....

                                                      If it is true or false, it's a boolean. If it has letters, it's a string, if it's just a number, it's an integer.

                                                      So, for nglayout.initialpaint.delay, you'd right click on the screen and put New > Integer and enter the number into the next box.
                                                      This is me on facebook
                                                      This is me on twitter

                                                      Comment

                                                      • adonthenet
                                                        Too lazy to set a custom title
                                                        • Feb 2005
                                                        • 16753

                                                        #28
                                                        great tips, thanks!

                                                        Comment

                                                        • nosey
                                                          Talk Hard
                                                          • Feb 2003
                                                          • 14413

                                                          #29

                                                          | Domain whois privacy Free || GFY favored Hosting |
                                                          $Chaturbate || FpcTraffic FPCPlugs || PlugRush Traffic

                                                          Comment

                                                          • Denny
                                                            Too lazy to set a custom title
                                                            • Feb 2005
                                                            • 17418

                                                            #30
                                                            great. thanks

                                                            Comment

                                                            • mineistaken
                                                              See signature :)
                                                              • Apr 2007
                                                              • 29656

                                                              #31
                                                              thanks for sharing

                                                              Comment

                                                              • Manowar
                                                                jellyfish  
                                                                • Dec 2003
                                                                • 71528

                                                                #32
                                                                neat tip!

                                                                Comment

                                                                • Ace_luffy
                                                                  www.creationcrew.com
                                                                  • Feb 2005
                                                                  • 12167

                                                                  #33
                                                                  Originally posted by nosey
                                                                  nice bump!


                                                                  ++ Adult and Mainstream Websites Designs | 10 banners for only $50 | html5 Banners ++
                                                                  email : [email protected] Telegram : https://t.me/creationcrew WhatsApp : +63 956 420 4819 | HTML5/Responsive Site - Div/CSS - ElevatedX - NATs - Wordpress

                                                                  Comment

                                                                  • Killswitch - BANNED FOR LIFE

                                                                    #34
                                                                    Thanks StuartD! I was having problems with my FireFox recently so I uninstalled and removed any traces of it from my system, reinstalled, and did these tips, now my problems seem to have disappeared.

                                                                    Comment

                                                                    • natas
                                                                      Confirmed User
                                                                      • Mar 2002
                                                                      • 3377

                                                                      #35
                                                                      good tips... it is worth noting, if only by myself, that my firefox on my macs runs WAY better, smoother, and rarely lags/slows down, unlike firefox on my pcs.

                                                                      Any idea(s) why this is?

                                                                      Comment

                                                                      • Killswitch - BANNED FOR LIFE

                                                                        #36
                                                                        Originally posted by natas
                                                                        good tips... it is worth noting, if only by myself, that my firefox on my macs runs WAY better, smoother, and rarely lags/slows down, unlike firefox on my pcs.

                                                                        Any idea(s) why this is?
                                                                        Mac > PC.

                                                                        Comment

                                                                        • Serge Litehead
                                                                          Confirmed User
                                                                          • Dec 2002
                                                                          • 5190

                                                                          #37
                                                                          Originally posted by MaDalton
                                                                          thanks, i'll try that!

                                                                          but i tend to think its a problem with my website (amazingcontent.com) or the apache settings of my server since i get complaints from visitors and experience that myself. but so far i haven't figured out whats wrong

                                                                          and it happens only with firefox
                                                                          have you tried to validate your HTML? ;)

                                                                          I went to your site - first load in FF was instant, on reload it hang.. after i restarted FF it loads and reloads pretty fast, but I see HTML parsing problem on a very first line in your source - it's missing ">" at the end of DOCTYPE declaration.. missing those brackets can lead to unexpected behavior

                                                                          Comment

                                                                          • StuartD
                                                                            Sofa King Band
                                                                            • Jul 2002
                                                                            • 29903

                                                                            #38
                                                                            Originally posted by natas
                                                                            good tips... it is worth noting, if only by myself, that my firefox on my macs runs WAY better, smoother, and rarely lags/slows down, unlike firefox on my pcs.

                                                                            Any idea(s) why this is?
                                                                            I'm not sure many people could say with 100% certainty, and I'd rather this didn't become a thread about which OS is superior.
                                                                            Simply put, it handles memory management (unused and leaks) better than Windows.
                                                                            This is me on facebook
                                                                            This is me on twitter

                                                                            Comment

                                                                            • Jakez
                                                                              Confirmed User
                                                                              • Jan 2004
                                                                              • 5656

                                                                              #39
                                                                              Bump TTT!

                                                                              Simply minimizing my FF now is better than even restarting it :O
                                                                              [email protected] - jakezdumb - 573689400

                                                                              Killuminati

                                                                              Comment

                                                                              • Juicy D. Links
                                                                                So Fucking Banned
                                                                                • Apr 2001
                                                                                • 122992

                                                                                #40
                                                                                burpPPPPPPPPPPPP

                                                                                Comment

                                                                                • NinjaSteve
                                                                                  Too lazy to set a custom title
                                                                                  • Dec 2003
                                                                                  • 11089

                                                                                  #41
                                                                                  If all users should have all of these settings, why doesn't firefox set it as default?
                                                                                  ...

                                                                                  Comment

                                                                                  • Darkcrni
                                                                                    Confirmed User
                                                                                    • Jun 2007
                                                                                    • 1704

                                                                                    #42
                                                                                    Nice, nice thx!

                                                                                    Comment

                                                                                    • ExLust
                                                                                      Confirmed User
                                                                                      • Aug 2008
                                                                                      • 3223

                                                                                      #43
                                                                                      Cool tips. I'd try it.

                                                                                      BE A PARTNER

                                                                                      Comment

                                                                                      • nosey
                                                                                        Talk Hard
                                                                                        • Feb 2003
                                                                                        • 14413

                                                                                        #44

                                                                                        | Domain whois privacy Free || GFY favored Hosting |
                                                                                        $Chaturbate || FpcTraffic FPCPlugs || PlugRush Traffic

                                                                                        Comment

                                                                                        • Socks
                                                                                          Confirmed User
                                                                                          • May 2002
                                                                                          • 8475

                                                                                          #45
                                                                                          What happens if you load up like 100 tabs in a FF instance then?

                                                                                          How would it just minimize all that data to 10mb?

                                                                                          Would that create a "HD sleep" effect, where when you go to access it, it needs to 'get up to speed' thus creating a delay?

                                                                                          Comment

                                                                                          • blogsy
                                                                                            Confirmed User
                                                                                            • Jul 2003
                                                                                            • 214

                                                                                            #46
                                                                                            great tips. thanks!

                                                                                            Comment

                                                                                            • Chit Chat
                                                                                              Confirmed User
                                                                                              • Oct 2008
                                                                                              • 747

                                                                                              #47
                                                                                              Bump bump...

                                                                                              ICQ: 403163346

                                                                                              Comment

                                                                                              • martinsc
                                                                                                Too lazy to set a custom title
                                                                                                • Jun 2005
                                                                                                • 27043

                                                                                                #48
                                                                                                Originally posted by nosey



                                                                                                i just love these two pics
                                                                                                Make Money

                                                                                                Comment

                                                                                                • bbobby86
                                                                                                  partners.sexier.com
                                                                                                  • Jan 2007
                                                                                                  • 11926

                                                                                                  #49
                                                                                                  Cool stuff... but i know that... an much more...

                                                                                                  Comment

                                                                                                  • sw0rdfi5h

                                                                                                    #50
                                                                                                    cool stuff, but does this have an effect on FF on 64bit platform?

                                                                                                    Comment

                                                                                                    Working...