From: Greg Colbourn on
I've had another go at tackling this, again with no luck. All the arrays
are being overwritten (i.e. with names = Names["@"];namedmemtot = Total[Table[ByteCount[Symbol[names[[i]]]], {i, Length[names]}]]; namedmemtot does not increase with each gif being processed. Nor does LeafCount increase), but somehow the memory used by the MathKernel keeps increasing to the point of crashing my machine.
Using MemoryConstrained doesn't help, as it just fills the memory up and aborts. Nor does Share[] help, or ClearSystemCache[] or Update[].
I'm at a loss. Is this a bug in Mathematica? I.e. a memory leak. In addition to the MathKernel memory keeping increasing, so does the memory used by GIF.exe. Has anyone else come across this problem?
Greg
> Date: Fri, 15 Jan 2010 03:17:00 -0500
> From: gcolbourn(a)hotmail.com
> Subject: Mac OS X hard disk space used up by virtual memory
> To: mathgroup(a)smc.vnet.net
>
> Hi,
> I'm using Mathematica 7 on Mac OS 10.6. I'm finding that when I'm reading in netcdf files and then outputting gifs created from the data, my hard drive space gets rapidly consumed (presumably by virtual memory), to the point where all 20GB of free space is consumed and Mathematica crashes. This happens after only a couple of 100 gif files of approx. 1MB each are created. Arrays containing the data are constantly overwritten in Do loops.
> I've tried Clear[] for the various data containing arrays at each iteration of the loop. And I've also tried $HistoryLength=0, each to no avail. Has anyone else seen anything similar?
> Greg Colbourn