From: Joel on
I have also run into some troubles with to little allocated memory for the java heap. The default max allocatalbe memory for the java heap in Matlab is 128Mb i think. You can change this by adding a file called
java.opts in $MATLABROOT/bin/$ARCH
If you want to change the max heap size to, for example 1024mb insert a line:
-Xmx2048m
in the java.opts file
I don't know how to unallocate java heap memory when used though...
BR
Joel

"Nasser Abbasi" <nma(a)12000.org> wrote in message <Zbzhk.16026$mh5.2132(a)nlpi067.nbdc.sbc.com>...
> 2007a, student version on windoz XP SP2.
>
> I use GUIDE, and after sometime of using it, I notice it gets sluggish in
> its response to editing and I see the following Java errors on the console:
>
> "Exception in thread "AWT-EventQueue-0" java.lang.OutOfMemoryError: Java
> heap space"
>
> I am not sure why it runs out of RAM so fast. as I have 4 GB of physical
> RAM.
>
> I did a google on the above and I see that others have seen this.
>
> I wonder if there is any update on this problem that someone from Mathworks
> or others can comment on.
>
> Is this still a problem in later Matlab releases?
>
> thanks,
> Nasser
>
>