how to fix the firefox memory leak (firefox hack) « // internet duct tape

how to fix the firefox memory leak (firefox hack) « // internet duct tape // internet duct tape blogging / programming / technology / lifehacks skip navigation subscription optionsmost popular postsidt labs - free software toolswordpress.com resources - tips, tricks and toolswordpress.com theme reviewswordpress.com theme review helpgreasemonkey script: wordpress category resizerwordpress.com 7 day referrer parserperl script - wordpress.com 7 day referrer parsergreasemonkey script: akismet auntie spam for wordpressgreasemonkey script: find images that are too widetag cloud generator for wordpress.comtag cloud generator advancedtag cloud generator - release noteswordpress themes by internetducttape.comblack and blue and read all over theme for wordpress sandboxmoon under uranus theme for wordpress sandboxmiscellanious wordpress scripts and toolsgreasemonkey script: wordpress comment ninjatechnorati favorite your fanstechnorati favorite your fans - release notescomic bloggergreasemonkey script: flickr always search for creative commons licensed photosgreasemonkey script: yahoo pipe cleanertag cloudall posts by category and titleseriesgift guide for geekseaster eggsreader appreciation for rss subscriberswelcome to internet duct tapegoogle1ec000b3808eedbf.htmlabout medisclosureimages credits « how google does web-based code reviews with mondrian suggested comic books for grumpy old men (ggg4 featuring alan moore, garth ennis, jms, frank miller) » how to fix the firefox memory leak (firefox hack) firefox memory leak? it doesn’t have one. unfortunately, because of the way it’s configured to run out of the box it *looks* like it has one. follow these simple steps to get your firefox memory usage under control. these configuration changes are a trade-off between internet browsing speed and memory usage. they are most useful if you are multitasking and need firefox to be less of a memory hog while using other applications. #1: about:config type “about:config” into your address bar to access the hidden configuration options for firefox. #2: browser.cache.memory.capacity controls how much memory is used to cache pages. right click on the page and choose new then integer and create an integer called browser.cache.memory.capacity and set it to a low number. this controls how many kilobytes of memory are used for the browser’s cache. note: number in screenshot is too small. aim for 80% of whatever the default is. #3: browser.cache.disk.capacity controls how much disk space is used to cache pages in kilobytes. set browser.cache.disk.capacity to between 5000 or 15000. 128mb to 512m -> 5000. 512bm to 1gb of ram -> use 15000 #4: config.trim_on_minimize (optional) configure firefox to swap memory to disk when minimized. this will make firefox less responsive if you minimize/maximize a lot, but it is good if you need to free memory while multi-tasking to other applications. right click on the page and choose new then boolean and create a boolean called config.trim_on_minimize and set it to true. now when you minimize the window it will free up memory. #5: network.prefetch-next network link prefetch will download all pages with the rel=”prefetch” tag. this uses up more memory than you would otherwise think. set network.prefetch-next to false. #6: browser.sessionhistory.max_total_viewers this controls how many pages of history are kept in the back/forward buttons. lower the value to something acceptable. if you do not use back/forward often then you can set this very low. set browser.sessionhistory.max_total_viewers to a low number. related posts synchronize google calendar with anything internet explorer 7 uninstall guide how to remove text from the autocomplete box in firefox or internet explorer firefox boss key extension all posts tagged firefox further reading ryan at cybernet installs 200 firefox extensions (via rooster) and checks memory usage. it jumps from 145 mb to 195 mb after two hours (note that this is a worst case scenario). mozillazine article on reducing memory use in firefox. list of popular extensions that have memory problems. leak monitor extension for detecting memory leaks. this entry was written by engtech and posted on december 02, 2006 at and filed under firefox and greasemonkey, popular posts, technology. bookmark the permalink. follow any comments here with the rss feed for this post. comments are closed, but you can leave a trackback: trackback url. « how google does web-based code reviews with mondrian suggested comic books for grumpy old men (ggg4 featuring alan moore, garth ennis, jms, frank miller) » 33 comments matt foxtrot posted december 03, 2006 at | permalink this is really useful! thanks! symbolik posted december 10, 2006 at | permalink awesome blog, great article. i added it to my blogroll, hope you don’t mind. i really like what you were able to do with sandbox - if i do not have to purchase the css upgrade to mod it, i may switch over myself. engtech posted december 11, 2006 at | permalink thanks symbolik. it’s comments like yours that keep this fun to do. the css upgrade was a *lot* of work (i’ve never used css before), but it was more satisfying than dealing with a pre-packaged theme and the issues most of them have. roy posted december 28, 2006 at | permalink only i can manage to screw this up. i managed to create a key with string instead of integer for the first one, and now i can’t change it! ggrrr. bltz posted january 03, 2007 at | permalink thank you - excellent tips and all in one page. added to my ff settings. :) connor posted january 23, 2007 at | permalink wow, your firefox hack is awesome. i kept watching firefox use more and more memory till it finally would crash. very annoying and i couldn’t find a solution anywhere. then, once i noticed how much memory firefox would use when it was active for awhile, i realized it was a memory leak. a little googling and then i discovered this blog. what a difference it’s made in firefox’s performance. muchas gracias for sharing this knowledge. engtech posted january 23, 2007 at | permalink i’m glad you found it useful. it really is essential to getting firefox to work. dave pasternack posted january 27, 2007 at | permalink i’m suprised this isn’t better known - even among the incredibly it-savvy people i know, they see this memory leak as an insoluble problem. i’m looking forward to sharing this article with them, as the “memory leak” is probably the most-publicized firefox fault. many grateful thanks! engtech posted january 27, 2007 at | permalink the other big cause of memory problems with firefox is flash… but i think that was fixed in the latest flash update. greg posted february 02, 2007 at | permalink of course, all of these settings, while they will reduce memory usage, will do so at the cost of speed. caching more results will make pages load faster. if you have the ram to space, you might not want to make these changes. alan grossberg posted february 02, 2007 at | permalink can’t you also change the cache settings from tools/options/privacy…or is that different from tweaking them in about:config? engtech posted february 02, 2007 at | permalink @alan: tools/options/privacy is for clearing the cache. about:config is used for setting values for disk/memory cache. different things. michael fremlins posted february 02, 2007 at | permalink there’s a problem with #2. you say “this controls how many megabytes of memory are used for the browser’s cache.” but on the mozilla site here (http://kb.mozillazine.org/browser.cache.memory.capacity) it says this value is kilobytes. engtech posted february 03, 2007 at | permalink @michael: thanks for that. corrected. tinosoft-admin posted february 03, 2007 at | permalink thx a lot man. it’s all, see ya. _jon posted february 03, 2007 at | permalink thanks for the suggestions. can you offer a better suggestion for #2 other than “80% of the default”? if this is a new key, i don’t know what the default is. something like what you have done for #3 would make this excellent list even better. thanks brian posted february 03, 2007 at | permalink it is utterly ridiculous that a user should have to go through that many steps to get firefox’s memory “under control.” sven posted february 03, 2007 at | permalink or you can just change: browser.cache.memory.leak from 1 to 0 joeb posted february 03, 2007 at | permalink i hope you like looking at that huge number of unused memory in the task manager. engtech posted february 03, 2007 at | permalink @jon: the defaults are as follows. use a smaller number. physical ram memory cache (in kb) 32 mb 2048 64 mb 4096 128 mb 6144 256 mb 10240 512 mb 14336 1 gb 18432 2 gb 24576 4 gb 30720 8 gb and up 32768 @joeb: “i hope you like looking at that huge number of unused memory in the task manager.” did i need to prefix this article with “only apply if you’re having memory problems”? i run a vm-ware linux machine on my desktop that uses up all available memory. i like to keep firefox opened for quick reference, but i want to free the memory for vm-ware when firefox is minimized. alan grossberg posted february 03, 2007 at | permalink engtech…thanks for the reply, but i’m still confused. i’m using firefox 1.5.0.9, and under tools/options/privacy there’s a box where i can manually set the number of mb of disk space for the cache. is that different than using about:config? thanks. joeb posted february 03, 2007 at | permalink i submit that your vmware problem is special and that ordinary firefox users have plenty memory to spare on caching. i can’t fathom why someone would sacrifice usability for a large amount of free and unused (!) memory. presenting these hacks without clearer caveats does everyone a disservice. engtech posted february 03, 2007 at | permalink @alan: that’s for disk cache, so it may be the same as #3. engtech posted february 03, 2007 at | permalink @joe: this is a guide for people who have memory issues with firefox, not a guide for people with a large amount of unused memory. jordan bacho posted february 13, 2007 at | permalink if your tips are so good then why doesn’t mr. firefox include them by default? i smell something fishy here. ezzie posted february 14, 2007 at | permalink thanks - i’d been having a memory leak problem, hopefully this will do the trick. ricky bobby joe posted february 14, 2007 at | permalink heh, there’s nothing fishy about this. back before firefox was “a gleam in someone’s eye”, mozilla (the browser) had a similar but opposite issue. when you maximized a browser window after having it minimized for some time, it took a very long time to come up. searching their forums way back then, i found the solution: add “config.trim_on_minimize” to about:config and set to false. these days most people have much more ram to allocate, so the devs take advantage of that, by default. you can’t just type some random thing and have it affect the browser. firefox has to recognize the entry, and if it does, that means it was designed to. it would be nice if they would put some sort of easily accessible advanced settings panel in so users could make changes to suit their preferences regarding memory usage. but given the average user, they probably feel it’s best to keep these settings hidden. matt posted february 27, 2007 at | permalink i made your requested changes and saw memory usage drop by about half. however since i made the changes firefox crashes on me 2-3 times per day. since almost 90% of my work involves the use of ff i guess i am going to go back to original settings. i am using the latest version of ff and it is (unfortunately) running on windows crappy (i mean xp). has anyone else had crashing problems after making the above changes? did you solve them with out reverting to the original firefox settings? thanks for any help or tips. rohen posted march 14, 2007 at | permalink thanks!!! x-j posted march 22, 2007 at | permalink thank you for your great tip, my firefox works great now!! kipht posted march 31, 2007 at | permalink my firefox never crashes but it does use over 150mb if left un touched for hours and hours. thanks for these tips, i hope they help visitor posted april 18, 2007 at | permalink i have noticed that excessive cpu usage by firefox occurs in conjunction with excessive memory usage. the “multimeter” downloadable sidebar gadget for vista is helpful in monitoring this. i currently use firefox 2.0.0.3, and it has the setting “browser.cache.disk.capacity,” but not the option “browser.cache.memory.capacity.” anyone know why this is missing? ps: may i suggest that your blog entries should have dates attached to the titles? hande posted april 26, 2007 at | permalink hi, thanks for all the tips, i am having memory issues with firefox, it seems to “hang” at times and doesn’t react to tab changes or when writing something it just stops…. i applied the above “hacks” but the trim on minimize doesn’t seem to do anything…. i am around 200 mb, the about:config shows that i have set true for this but still, when i minimize it doesn’t go down a bite! (i have restarted firefox and even the pc completely) do you have any idea why this doesn’t work? 18 trackbacks/pingbacks by smith data processing services » blog archive » links for 2006-12-08 on 08 dec 2006 at 9:19 am […] how to fix the firefox memory leak (firefox hack) « //engtech (tags: firefox memory leak fixes?) […] by skylog » blog archive » links for 2007-02-03 on 03 feb 2007 at 10:21 am […] how to fix the firefox memory leak (firefox hack) (tags: software) […] by firefox hacker | another firefox memory fix article with pics on 03 feb 2007 at 9:58 pm […] fixing the firefox memory issue […] by scatterbrains » blog archive » links for 2007-02-04 on 04 feb 2007 at 9:26 am […] how to fix the firefox memory leak (firefox hack) « //engtech (tags: firefox hack tips sysadmin) […] by links for 2007-02-04 at destructured blog on 04 feb 2007 at 8:11 pm […] how to fix the firefox memory leak (firefox hack) « //engtech (tags: firefox hack) […] by www.ozankilic.com » arşiv » firefox hafıza problemine bir çözüm on 05 feb 2007 at 12:26 pm […] bu adreste bulunan yöntemlere göre düzenlemem sonucunda %30 oranında performans artışı sezdim. firefox 2.0′ı düşük hafızalı bilgisayarlarda kullananlar için gayet güzel bir çözüm gibi görünüyor. ozan kilic05/02/2007           0 kez pohpohlanmış “firefox hafıza problemine bir çözüm” başlığına kimse yorum yazmamış […] by daily links | creativebits on 08 feb 2007 at 5:27 pm […] how to fix the firefox memory leak (firefox hack) […] by yi-feng tzeng’s blog » blog archive » 解決 firefox 的 memory leak? on 12 feb 2007 at 11:55 am […] 目前最令人頭痛的問題之一,應該就是 memory leak。今天從 //engtech 看到 how to fix the firefox memory leak […] by kreativgemüse » memoryleaks in firefox? on 12 feb 2007 at 4:56 pm […] als man es ihm zutrauen würde… viele sachen kann man letztendlich abstellen, wie dieser artikel zeigt. naja… fand’ ich wichtig mal zu […] by tech tips » on 21 feb 2007 at 4:57 am […] have you noticed that firefox can be a memory hog (still not as bad as ie7), especially when you have lots of tabs open? this might help. […] by madthiu's palace :: 快治 firefox 猛耗記憶體問題 on 07 mar 2007 at 7:23 pm […] engtech 的文章 “how to fix the firefox memory leak (firefox hack)“,有五個 firefox 的隱藏設定可減低 firefox […] by firefox memory leak fix - how to? » jumbled thoughts on 16 mar 2007 at 3:32 pm […] up many results on “firefox leaking memory”, but nothing solved my problem. i tried engtech’s solution & couple of other solutions. more tinkering around pointed me out to a plugin, which was the […] by award tour » firefox memory options on 30 apr 2007 at 10:11 pm […] how to cahnge how much memory firefox uses. couple interesting options you can play around with. […] by solution to the firefox memory leak « perfectly reasonable deviations on 04 may 2007 at 2:08 am […] this problem, i was quite glad to find this tutorial on how to solve the firefox memory leak: how to fix the firefox memory leak (firefox hack). i followed the instructions and have been able to improve firefox’s memory usage efficiency, […] by mozilla firebug extention has got memory leak bug at tech | freak , one stop for all your latest technology news and updates on 17 jun 2007 at 5:53 pm […] searched and even this article was not able to help till much extent. starting firefox will take the memory usage to 60k memory . […] by déboguer firefox : comment limiter l'utilisation de mémoire ram? on 07 jul 2007 at 5:05 pm […] : voici deux autres liens qui peuvent aider : how to fix the firefox memory leak (firefox hack) reducing memory use in firefox encouragez-moi en soumettant cet article aux digg-like : ces […] by redybasuki.web.id | mengatasi overload memori dalam firefox on 18 aug 2007 at 11:33 pm […] sumber artikel dan gambar diperoleh dari situs internet duct tape. […] by how to fix the firefox memory leak (firefox hack) « graphic design blog on 07 sep 2007 at 8:36 am […] http://internetducttape.com/2006/12/02/how-to-fix-the-firefox-memory-leak-firefox-hack/ […] click to subscribe using rss click to subscribe using email what's new blogging programming lifehacks projects navigation most popular posts most recent posts site map random post information about me subscription options free software wordpress tools categories becoming a better blogger building a community css and web design group writing projects marketing and promotion the war on spam web 2.0 blogging feedburner technorati wordpress wordpress.com tips book reviews geeking out digital culture gadgets games movies tshirts humor harold is a robot lifehacks increasing productivity and simplifying your life online privacy and reputation management programming and software development perl programming tools workhacks and high tech life hiring, job interviews and resume resources startups and business writing better documentation software firefox and greasemonkey google calendar and gmail linux and unix microsoft windows xp and vista music, mp3s and internet radio web 2.0 and social media delicious digg facebook reddit rss syndication yahoo pipes stumbleupon twitter wikipedia tag cloud bestoffeeds blogging blognetworking books cats comic community css delicious digest digg documentation facebook feedburner firefox gadgets games geek google gwp hiring humor lifehacks linux marketing microsoft movies music online online identity perl popular productivity programming programming tools reddit rss syndication software startups stumbleupon technorati tshirts twitter web2.0 wikipedia wordpress wordpress.com work yahoo pipes blog stats 2,068,402 hits recent posts how to profile greasemonkey scripts with firebug best of feeds - 19 links - blogging, tips, google, opensocial, community internet duct tape featured in blogging heroes how to subscribe to rss feeds with google reader and internet explorer avoid prime real estate for live.com email address landrush digest for october 2007 password recovery — the achilles heel of your online security overtime considered harmful best of feeds - 9 links - humor, microsoft, productivity, visualization, comics best of feeds - 30 links - programming, google, tips, agile, facebook search featured posts how to earn a six figure income from blogging in two easy steps how not to be a successful blogger 81 movies for geeks that do not suck web anonymity 101 - digital breadcrumbs 76 romantic movies for guys and girls 107 t-shirts for geeks that do not suck popular posts the holy grail of synchronization: combining microsoft outlook, google calendar, gmail, ipod, and mobile phonehow to access gmail when it is blocked at work or schooltop romance movies: 76 romantic flicks for guys and girlsstupid windows features - monitor display turns sideways or upside downhow to fix the firefox memory leak (firefox hack)how to use facebook without losing your job over it107 t-shirts for geeks that do not sucki hate internet explorer 7 (uninstall guide)how to find out which version of linux you are runninghow to install a firefox extension (with screenshots)revolutionizing the web with firefox and greasemonkey (with screenshots)stupid windows features: disable filterkeys permanently recent comments skellie on internet duct tape featured in...david bradley on avoid prime real estate for li...the holiday spread -... on the holiday spread - group wei...the middle manager -... on the holiday spread - group wei... recent readers recent links an error has occurred; the feed is probably down. try again later. add a link to internet duct tape from your blog to automatically show up on this list. blog at wordpress.com. | sandbox

Acceuil

suivante

how to fix the firefox memory leak (firefox hack) « // internet duct tape  BYO - In Memoriam: Dr. George J. Fix III  Jackie Craven: The Fix  Tax Fix  Avi Fix Repair Joiner : tlcharger Avi Fix Repair Joiner  Forums de wow-europe.com -> [INADMETTABLE] Fix teh banner ffs ...  Dveloppeur C++ /Protocoles FIX/ Bourse - Freelance-info  Restaurant Fix Saint Geneys Haute-loire Restaurants Fix Saint Geneys  Neowin.net - Apple Releases Fix for iMac Freeze Issue, fix not enough  Fix-It : Home  IBM - 6.0.2.7: WebSphere Application Server V6.0.2 Fix Pack 7 for ...  Forum AideInfo.com :: Voir le Forum - (FIX) Correctifs et mises ...  Dfinition : FIX - informatique Gers, vente, maintenance ...  jem & fix - Lavpris byggemarked  New Statesman - The road fix  Daily Fix Coffee  Qwik-Fix qfcoresvc  FixVideoResolutionHowto - Community Ubuntu Documentation  Coop's Daily Joke Fix  Wii Strap Fix - a photoset on Flickr  Flickr: FIX MY PIC  Pants'Fix trousers solution women femme - Vidos Actualits Mode ...  VICHY THERMAL FIX MAT  Tlcharger WinSock XP Fix  fortycentfix!  Free advice on how to fix your bicycle  FIX: Fatal error: Allowed taille de la mmoire de 8388608 octets ...  fix : traduction fix dans le dictionnaire MEDIADICO  xfonts fix  Garniture Mousse pour fix Standard: Acheter dans plus de 270 ...  Quick-Fix Keychain  Tlcharger Object Fix Zip - 01net. Telecharger.com ...  Theory Fix (Isabelle2005: October 2005)  Fix You de Coldplay : paroles et extrait - Fluctuat.net  MacSlash iMac Freeze Fix Promised  Fix Iraq - Free US Casualty In Iraq counter, join the discussion ...  Pants'Fix trousers solution men homme - Vidos Actualits Mode ...  Groupe 0-0+, Cabrio Fix de Maxi Cosi : Aubert  FixMyVista.com - Your One Stop Windows Vista Fix It Site  - RSA, The Security Division of EMC  Operator @FIX  Sige coque - Cratis Fix BB Red - Fnac veil et jeux - achat en ligne  Pattex - Ni Clou Ni Vis Fix & Dfix : Toutcoller.com  La Gallerie du Kap Course :: Beach volley by fix!!!  Thses de l'ULP - Auteur: FIX, Thomas  Offre demploi FIX Connectivity Specialist Investment Banking ...  How to fix your iTunes artwork - Download Squad  SPECIAL BATIMAT - De l'indit chez Sader : Top Fix, la Pte ...  Stop The ACLU Blog Archive Fred Thompson Proposes Social ...  Matrix Infinity Fix sur PsTwo - PsTwo la nouvelle PS2 de Sony ...  Fix-CA  Reborn Mr Fix-it, Ahmed Chalabi, pulls Iraq out of darkness ...  KIT FIX ALFA/FIAT  Howto fix Firefox Flash Video Sound on Ubuntu Linux Dapper ideal ...  Bebe Confort Creatis Fix - Comparer les prix pour Bebe Confort ...  Chevilles SPIT FIX II - BTP MAT  If it ain't broke, don't fix it! (uit Engels in Frans translation ...  Dvorak Uncensored Blog Comment Spam Fix  Numlock Fix for Linux  Fix-Saint-Geneys - vue photo satellite  Welkom op de Homepage van C-Fix