JavaFAQ Home » Java Productivity guide with Firefox
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 ".
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!.
- Stop to blame Java, revise your applications
- If you use Firefox, read my tips below. If not, try to locate a source of problem yourself...
- Install "QuckRestart" plugin. It lets you restart Firefox and keep current tabs opened. Prevents memory leak growing more an more...
- Type in address field (URL): about:config
- You get all configurable parameters for Firefox. Look at them carefully, you get much knowledge about how Firefox actually works.
- Click the left mouse button and choose: New-->Boolean. Type in "config.trim_on_minimize" , then Ok and choose true.
- 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...
- 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
Send to a Friend
Search here again if you need more info!