Re: 4 Gb are not enough ...
- To: mathgroup at smc.vnet.net
- Subject: [mg112808] Re: 4 Gb are not enough ...
- From: Herman Kuun <oomkoos1 at gmail.com>
- 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. Edit:- $UserBaseDirectory/Kernel/init.m and add the following lines:- Needs["JLink`"]; ReinstallJava[JVMArguments -> "-Xmx800m"]; Good Luck! Best Herman On Thu, Sep 30, 2010 at 10:53 AM, enrico tagola <enrico.tagola at hotmail.it>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 > > http://forums.wolfram.com/mathgroup/archive/2008/Oct/msg00551.html > 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: > http://www.megaupload.com/?d=UNTZCAV8 > > > Yours sincerely > Enrico > > enrico.tagola at hotmail.it > >