|
"Aron Sceidt" <sigarru87@gmail.com> wrote in message <j0m9li$ig$1@newscl01ah.mathworks.com>...
> I just did and you're right.. doesn't show like its shrinking... Something very strange is happening as I keep getting a java heap space error after some time...
I'm by no means an expert on memory management, but I'm pretty sure java heap space memory errors are completely unrelated to other memory management issues, since only graphics objects (along with all the desktop GUI elements) use the java heap space. I've hit these errors before while doing very memory-light calculations but generating dozens of plots from the same data. I'm not really sure what changes behind the scenes, but it seemed to me that different versions of Matlab were much more prone to these issues than others. It was never a problem for me up to release 2006 or so, became a little annoying in 2007 and then a major issue for me in R2008 (to the point that I downgraded back to 2007), and now using R2010 is seems to be back under control (my java heap space is a 256MB, and I only hit heap space errors on rare occasion now).
What version of Matlab are you running, and what is your java heap size? In more recent versions, you can increase the heap size under the Preferences menu. In older versions (R2009 and previous, if I remember correctly), you need to create a java.opts file (http://blogs.mathworks.com/desktop/2010/04/26/controlling-the-java-heap-size/).
I've found that if you turn off a lot of the little helper elements in the GUI (like mlint integrated warnings in the Editor), then that will also help reduce the java memory issues.
-Kelly
|