Re: Memory Problem after several LOADs
- From: "Raymond Skjerpeng" <skjerpeng@xxxxxxxxx>
- Date: Thu, 28 Jun 2007 05:31:25 -0400
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
- Follow-Ups:
- Prev by Date: read in sequence of bmp's
- Next by Date: Re: read in sequence of bmp's
- Previous by thread: Re: Memory Problem after several LOADs
- Next by thread: Re: Memory Problem after several LOADs
- Index(es):
Relevant Pages
|