Easy to Learn Java: Programming Articles, Examples and Tips

Start with Java in a few days with Java Lessons or Lectures


Code Examples

Java Tools

More Java Tools!

Java Forum

All Java Tips


Submit News
Search the site here...
Search the JavaFAQ.nu
1000 Java Tips ebook

1000 Java Tips - Click here for the high resolution copy!1000 Java Tips - Click here for the high resolution copy!

Java Screensaver, take it here

Free "1000 Java Tips" eBook is here! It is huge collection of big and small Java programming articles and tips. Please take your copy here.

Take your copy of free "Java Technology Screensaver"!.

Firefox trimming from 1 GB to 40 Mb with many tabs opened

JavaFAQ Home » Java Productivity guide with Firefox Go to all tips in Java Productivity guide with Firefox

Bookmark and Share

Ultimate receipt on Firefox trimming - more memory for Java!

This saved me 1 GB of RAM! I decreased continuous memory leakage from 1 GB to 40 Mb with 25 tabs opened during two weeks.

All Java developers know that development of Java2SE, Java EE 5 is MUCH, MUCHmemory demanding process.

We used to suffer from memory absence on our Work Stations and in coffee room usually blame our chiefs and IT support department: "You know, we need more memory to be more effective with Java development, but our greedy, stupid chief(s) do not understand this fact due to the fact that they are chiefs Smile".

Quite right... But are you so perfect, that you have a right to blame anybody else in memory disappearance, but not yourself? Yesterday i noticed that something goes wrong on my PC.... Even having open just a few applications I noticed, that memory consumption exceeded 2.5 GB! I had 2 GB RAM, but something in my windows environment still was hungry.

Guess what? Probably you are right - Firefox, the browser most Java developers prefer... I had not restarted my browser last two weeks and had ~25 tabs opened... Resulted in more that 1 GB of memory leakage...

Fortunatelly, I pretty fast extracted all the solutions for Firefox optimisations from my bookmarks - I had no time to start to use them before.

Firefox plugin + new configuration settings lets save much memory for Java

So here is my receipt to Java Developers to get development more productive with Firefox - no memory leaks!.

  1. Stop to blame Java, revise your applications
  2. If you use Firefox, read my tips below. If not, try to locate a source of problem yourself...
  3. Install "QuckRestart" plugin. It lets you restart Firefox and keep current tabs opened. Prevents memory leak growing more an more...
  4. Type in address field (URL): about:config
  5. You get all configurable parameters for Firefox. Look at them carefully, you get much knowledge about how Firefox actually works.
  6. Click the left mouse button and choose: New-->Boolean. Type in "config.trim_on_minimize" , then Ok and choose true.
  7. Now every time when you minimize a browser window Firefox will release most of memory from tabs. When you open a browser again it will actually start from almost zero memory...
  8. Check "browser.cache.disk.enable" variable and be sure that it is false. If not, just double click it and it will turn to false from true.

I have more tips on Firefox optimizations for SW developers, I plan to publish them soon.

P.S. Check my older tip here Look here: Firefox with my free tools increase productivity of your work by 50%!

 Printer Friendly Page  Printer Friendly Page
 Send to a Friend  Send to a Friend

.. Bookmark and Share

Search here again if you need more info!
Custom Search

Home Code Examples Java Forum All Java Tips Books Submit News, Code... Search... Offshore Software Tech Doodling

RSS feed Java FAQ RSS feed Java FAQ News     

    RSS feed Java Forums RSS feed Java Forums

All logos and trademarks in this site are property of their respective owner. The comments are property of their posters, all the rest 1999-2006 by Java FAQs Daily Tips.

Interactive software released under GNU GPL, Code Credits, Privacy Policy