{"id":13,"date":"2011-04-04T21:27:00","date_gmt":"2011-04-05T04:27:00","guid":{"rendered":"http:\/\/www.lorrin.org\/blog\/?p=13"},"modified":"2012-03-16T23:35:35","modified_gmt":"2012-03-17T06:35:35","slug":"firefox-adblock-memory-leak","status":"publish","type":"post","link":"https:\/\/www.lorrin.org\/blog\/2011\/04\/04\/firefox-adblock-memory-leak\/","title":{"rendered":"Taming Firefox + Adblock with browser.sessionstore.max_concurrent_tabs"},"content":{"rendered":"<p>I tend to have lots of browser tabs open. Even more so with Firefox 4&#8217;s <a href=\"http:\/\/www.azarask.in\/blog\/post\/designing-tab-candy\/\">Panorama<\/a> feature, which I find handy despite the frustrating limitation that <a href=\"https:\/\/support.mozilla.com\/hi-IN\/questions\/796129\">tab groups cannot be moved between windows<\/a>. Alas, having many tabs open is suspected to trigger\/exacerbate a <a href=\"https:\/\/adblockplus.org\/forum\/viewtopic.php?f=1&amp;t=7006\">Firefox memory leak when Adblock Plus is running<\/a>. My own informal testing corroborates this.<\/p>\n<p>In Firefox 3.6 I had used <a href=\"https:\/\/addons.mozilla.org\/en-US\/firefox\/addon\/bartab\/\">BarTab<\/a>, a great plug-in that allowed unloading tabs without closing them to reclaim memory. Alas, it is <a href=\"https:\/\/github.com\/philikon\/BarTab\/wiki\/FAQ\">not yet compatible with Firefox 4<\/a>.<\/p>\n<p>But it turns out Firefox 4 has a new setting (called <a href=\"http:\/\/blog.zpao.com\/post\/1140456188\/cascaded-session-restore-a-hidden-bonus\">Cascaded Session Restore<\/a>) that provides a reasonable work-around. In <code>about:config<\/code> set<\/p>\n<p><code>browser.sessionstore.max_concurrent_tabs=0<\/code><\/p>\n<p>&#8230;and  then, when closed and re-opened, Firefox will not load any tab until  you click on it. Now it&#8217;s extremely fast to quit, restart, and continue  on with reduced memory usage.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I tend to have lots of browser tabs open. Even more so with Firefox 4&#8217;s Panorama feature, which I find handy despite the frustrating limitation that tab groups cannot be moved between windows. Alas, having many tabs open is suspected to trigger\/exacerbate a Firefox memory leak when Adblock Plus is running. My own informal testing <a href='https:\/\/www.lorrin.org\/blog\/2011\/04\/04\/firefox-adblock-memory-leak\/' class='excerpt-more'>[&#8230;]<\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":[],"categories":[52],"tags":[10,9],"_links":{"self":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/13"}],"collection":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/comments?post=13"}],"version-history":[{"count":3,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions"}],"predecessor-version":[{"id":166,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/posts\/13\/revisions\/166"}],"wp:attachment":[{"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/media?parent=13"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/categories?post=13"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.lorrin.org\/blog\/wp-json\/wp\/v2\/tags?post=13"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}