Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

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

Search the Archive

Re: Will adding RAM help "No more memory available" error?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg89709] Re: [mg89691] Will adding RAM help "No more memory available" error?
  • From: "Szabolcs HorvÃt" <szhorvat at gmail.com>
  • Date: Wed, 18 Jun 2008 06:41:15 -0400 (EDT)
  • References: <200806180824.EAA26172@smc.vnet.net>

On Wed, Jun 18, 2008 at 11:24, Erin Noel <enoel2 at gmail.com> wrote:
> I have a rather large program the imports data from excel (approximately
> 600x200) and runs a monte carlo simulation on that data. For large numbers
> of iterations, roughly about 5000, Mathematica runs out of memory and
> returns the following error:
>
> No more memory available.
> Mathematica kernel has shut down.
> Try quitting other applications and then retry.
>
> My question doesn't relate specifically to my code, which is why I am not
> including any details of it. Generally speaking, will adding RAM to the
> system help prevent this error?

> Are there any other general methods for
> decreasing the likelihood of this error that aren't code-specific?

Not really.  It is possible that this is because of a flaw in your
code and adding RAM will not fix it.  It is also possible that the
calculation is just too big (in this case adding RAM may help), but
I strongly suggest to try to optimize the code first.  Any suggestion
will involve code modifications, so I cannot say much ...  Learning
about packed arrays may turn out to be very useful.  There's also
Share[] (which might actually increases mem usage a little before
decreasing it) and $HistoryLength = 0 can be useful, too.


  • Prev by Date: Re: Bug in LogPlot and ListLogPlot in V6.0.3
  • Next by Date: Combining pure functions to produce a new pure function
  • Previous by thread: Will adding RAM help "No more memory available" error?
  • Next by thread: Re: Will adding RAM help "No more memory available" error?