MathGroup Archive 2009

[Date Index] [Thread Index] [Author Index]

Search the Archive

Releasing memory

  • To: mathgroup at smc.vnet.net
  • Subject: [mg101685] Releasing memory
  • From: Zach Bjørnson <bjornson at wi.mit.edu>
  • Date: Tue, 14 Jul 2009 05:36:27 -0400 (EDT)

Hello-

I frequently write scripts that call external programs, exchanging data 
by temporary files. The Mathematica scripts tend to take up large 
amounts of memory (2-7 gb), as do the external programs (~4 gb). I can't 
figure out how to get Mathematica to actually release memory so that the 
external programs have that memory to use.

Clear, ClearAll and Remove remove the definitions from Mathematica, but 
the amounts of memory in use by the MathKernel processes don't change. 
(Quitting the kernel does the trick, but is obviously not a feasible 
solution when Mathematica has work to do both up and down-stream of the 
external call.)

Advice?
Thanks!
Zach


  • Prev by Date: Problem: ToLowerCase and Greek letters with stress marks
  • Next by Date: Re: ColorFunction and question about how to use it
  • Previous by thread: Problem: ToLowerCase and Greek letters with stress marks
  • Next by thread: Re: Releasing memory