From: Eric on
"chairmanK " <chairmanK_atgmaildotcom(a)foobar.org> wrote in message <hoj9p8$5o2$1(a)fred.mathworks.com>...
> I have a similar problem.

Another Bump! for this problem.

I read a large binary file, do some signal processing, save plots as .png and .fig, and save the results in a .mat for later inspection.

As I loop over files, the Matlab memory of the process (as shown by top) increases apparently without bound, until exceptions start to occur.

It sure seems like a memory leak. I have tried to verify that file handles are all closed, etc., and they appear to be. Are there any tools with which to diagnose such a problem?

My version information is below.

Eric

>> ver
-------------------------------------------------------------------------------------
MATLAB Version 7.9.0.529 (R2009b)
MATLAB License Number: 541556
Operating System: Linux 2.6.24-27-generic #1 SMP Fri Mar 12 01:10:31 UTC 2010 i686
Java VM Version: Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
-------------------------------------------------------------------------------------
MATLAB Version 7.9 (R2009b)
Simulink Version 7.4 (R2009b)
Communications Toolbox Version 4.4 (R2009b)
Fixed-Point Toolbox Version 3.0 (R2009b)
Signal Processing Blockset Version 6.10 (R2009b)
Signal Processing Toolbox Version 6.12 (R2009b)
Simulink Fixed Point
From: omegayen on
"Eric" <eric.nospam(a)brnphoenix.nospam.com> wrote in message <hs9uhh$fhf$1(a)fred.mathworks.com>...
> "chairmanK " <chairmanK_atgmaildotcom(a)foobar.org> wrote in message <hoj9p8$5o2$1(a)fred.mathworks.com>...
> > I have a similar problem.
>
> Another Bump! for this problem.
>
> I read a large binary file, do some signal processing, save plots as .png and .fig, and save the results in a .mat for later inspection.
>
> As I loop over files, the Matlab memory of the process (as shown by top) increases apparently without bound, until exceptions start to occur.
>
> It sure seems like a memory leak. I have tried to verify that file handles are all closed, etc., and they appear to be. Are there any tools with which to diagnose such a problem?
>
> My version information is below.
>
> Eric
>
> >> ver
> -------------------------------------------------------------------------------------
> MATLAB Version 7.9.0.529 (R2009b)
> MATLAB License Number: 541556
> Operating System: Linux 2.6.24-27-generic #1 SMP Fri Mar 12 01:10:31 UTC 2010 i686
> Java VM Version: Java 1.6.0_12-b04 with Sun Microsystems Inc. Java HotSpot(TM) Client VM mixed mode
> -------------------------------------------------------------------------------------
> MATLAB Version 7.9 (R2009b)
> Simulink Version 7.4 (R2009b)
> Communications Toolbox Version 4.4 (R2009b)
> Fixed-Point Toolbox Version 3.0 (R2009b)
> Signal Processing Blockset Version 6.10 (R2009b)
> Signal Processing Toolbox Version 6.12 (R2009b)
> Simulink Fixed Point

The only way I would know how to diagnose this problem would be to use feature('memstats') as the original poster indicated, but you cant use that on linux....

you could try loading and saving .txt files instead of .mat files to see if there is any difference.....

to save and load to .txt you can refer to my post here http://www.mathworks.com/matlabcentral/newsreader/view_thread/274020#739916