MathGroup Archive 2010

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

Search the Archive

Re: 4 Gb are not enough ...

  • To: mathgroup at
  • Subject: [mg112808] Re: 4 Gb are not enough ...
  • From: Herman Kuun <oomkoos1 at>
  • Date: Fri, 1 Oct 2010 05:42:01 -0400 (EDT)

What you want to do is increase the heap size of the Java runtime Virtual
Machine. On my system Mathematica 7 (64bit) sets it by default to 236
Megabytes. After increasing it to 800 Megabytes I had no memory constraint
problems with a Gentoo Linux x86-64 operating system and 2 Gigabytes of ram.
I am not sure about Windows XP. It only uses a maximum of 3 Gigabytes ram
even with 4 G installed. If this is causing the problem I do not know.

However it is worth trying to increase the Java heap size.


and add the following lines:-
ReinstallJava[JVMArguments -> "-Xmx800m"];

Good Luck!


On Thu, Sep 30, 2010 at 10:53 AM, enrico tagola <enrico.tagola at>wrote:

> Dear Mathgroup
> My PC ( Dell 7400 con 4 gb ram win xp professional x64 sp2 )
> runs out of memory when performing some computation; I have
> just tried extensively to fix the concern following the guide lines given
> in
> How to reduce memory usage of the MathKernel.exe?
>  a) you should set th global variable $HistoryLength=0
>  b) you should call Share[] periodical, but not to often
>  c) it depends on your computation if ClearSystemCache[] helps
> but still it won't work fine.
> I would be pleased to receive any hint about the memory
> saving procedure further developed since that time,
> even if implies changing operation system (es, Ubuntu, Windows 7, ...)
> or calling external routines written in C\C++, etc.
> If you are interested in the notebook I have mentioned before,
> please, download it from:
> Yours sincerely
> Enrico
> enrico.tagola at

  • Prev by Date: Re: How to unflatten an array ?
  • Next by Date: Re: How to unflatten an array ?
  • Previous by thread: Re: Numeric warnings during symbolic manipulation
  • Next by thread: Re: Help to solve an integral by using Mathematica Integrate[Sqrt[t