Re: Memory Problem after several LOADs



No answers here? I have a simlar problem. If I run my program in
debug mode and stop it at a point to check some values and then just
exit the debugger Matlab doesn't free the memory used for the
program. After running it a couple of times like this I get out of
memory and must restart Matlab to continue.

Nils Ellendt wrote:


Hi all,

I have done a series of Matlab/Comsol Multiphysics calculations. I
saved
the results of each calculation in a MAT file. No I have to
interpolate
some data points in each calculation and combine the data in a
plot.

Each MAT file is 5-10MB. When I load the required variable from
such a
file, whos say that this structure is between 50000 and 500000
bytes, my
other variables make a total of again up to 500000 bytes. I process

about 200 MAT files that way, and when I watch the windows task
manager,
I can see that the matlab memory usage is cumulating even though I
clear
the variables after each step. Finally, I run out of memory. Pack
doesn't change anything, and several different clear commands don't

change anything too (clear hidden, clear java, clear mex, clear
classes
and so on). It feels like the memory consumed by the loaded
variable
from the mat file is not released when I load the next one, even
though
I clear it.

I guess this is a Matlab problem, not a Comsol problem?

Any ideas?

(I am using Matlab 2006b/Comsol 3.3 on Windows XP SP2/32 Bit)


Nils

.



Relevant Pages

  • Re: Wishlist for R2007b
    ... drive can be used for up to 50 GB of virtual memory. ... Let matlab open memory-mapped fileto use as "last ... calculation I'd like to quickly kill (sometimes even ... With multiple figure windows ...
    (comp.soft-sys.matlab)
  • Re: a big limit of mathematica?
    ... This behavior is predictable knowing as mathematica kernel is ... This problem on my hardware is interrupted for lack of memory (as ... With Matlab or Maple on Same Hardware it is resolved (Ok!! ... Matlab performs this calculation because, ...
    (sci.math.symbolic)
  • Re: Save 64bit variables for 32bit windows
    ... contiguous memory. ... contiguous memory, whether the data we write into/read from MAT file, ... Matlab and 64 bit Matlab. ...
    (comp.soft-sys.matlab)
  • Re: Memory Problem after several LOADs
    ... the results of each calculation in a MAT file. ... Each MAT file is 5-10MB. ... I can see that the matlab memory usage is cumulating even though I ...
    (comp.soft-sys.matlab)
  • Memory Problem after several LOADs
    ... I saved the results of each calculation in a MAT file. ... No I have to interpolate some data points in each calculation and combine the data in a plot. ... I process about 200 MAT files that way, and when I watch the windows task manager, I can see that the matlab memory usage is cumulating even though I clear the variables after each step. ...
    (comp.soft-sys.matlab)