MathGroup Archive 2003

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

Search the Archive

Re: Memory Usage Problem

  • To: mathgroup at smc.vnet.net
  • Subject: [mg41072] Re: Memory Usage Problem
  • From: Jens-Peer Kuska <kuska at informatik.uni-leipzig.de>
  • Date: Thu, 1 May 2003 04:58:02 -0400 (EDT)
  • Organization: Universitaet Leipzig
  • References: <b8o2i6$p48$1@smc.vnet.net>
  • Reply-to: kuska at informatik.uni-leipzig.de
  • Sender: owner-wri-mathgroup at wolfram.com

Hi,

Set $HistoryLength=0 ?
Call Share[]

Close and reopen the MathLink connection ?


Regards
  Jens

Rolf Alber wrote:
> 
> Hello together !
> 
> I am using Mathematica through a mathlink-connection from inside a
> c-programm which is performing a genetic algorithm. This means that in each
> generation I let Mathematica have a bunch of equations solved. The problem
> now is that after a few thousands of generations I get an error Message that
> Mathematica is running out of memory (No more memory
> available.\012Mathematica kernel has shut down.\012Try quitting other
> applications and then retry.).
> I don't know why Mathematica seems to need more and more Memory for each
> generation, because after each generation I send a "Remove["Global`*"];" to
> Mathematica in order to clear all the symbols again (which I thought should
> save some memory).
> 
> Now my question is: Is there a possibility to "reset" the kernel to it's
> initial state (like exiting and restarting the kernel) ?
> Or are there better ways to remove the data stored by the kernel than the
> "Remove["Global'*"]" ?
> 
> Any help is highly appreciated.
> Thank you,
> 
> rolF


  • Prev by Date: Re: Finding intersection of two curves/ Chord that cuts a circle in ratio 1:3
  • Next by Date: Re: A FullSimplify Problem
  • Previous by thread: Re: Memory Usage Problem
  • Next by thread: Re: Memory Usage Problem