This week's book giveaway is in the Mac OS forum.
We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes Looking for Help/Tips on Freeing memory in a Swing Application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Looking for Help/Tips on Freeing memory in a Swing Application" Watch "Looking for Help/Tips on Freeing memory in a Swing Application" New topic
Author

Looking for Help/Tips on Freeing memory in a Swing Application

Matt Wilcko
Ranch Hand

Joined: Sep 23, 2003
Posts: 65
Hi,
I have a desktop application that loads/edits/saves very large images(about 2000 x 1500 pixel images). The program keeps gobbling up memory until I get an Out of Memory error. Before I receive this error, the program runs around 65-70 megs or ram.. printing takes it up to 85 and sometimes causes the out of memory error.
I've tried setting bufferedImages to null after using them but that doesnt seem to free space(or very little). Should I set JPanels and everything else to null after using them? Is there a good resource on the web about this topic?
Thanks!
 
GeeCON Prague 2014
 
subject: Looking for Help/Tips on Freeing memory in a Swing Application