Services & Resources / Wolfram Forums
-----
 /
MathGroup Archive
2003
*January
*February
*March
*April
*May
*June
*July
*August
*September
*October
*November
*December
*Archive Index
*Ask about this page
*Print this page
*Give us feedback
*Sign up for the Wolfram Insider

MathGroup Archive 2003

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

Search the Archive

Memory

  • To: mathgroup at smc.vnet.net
  • Subject: [mg44259] Memory
  • From: gary.larson at gmx.at (josef hader)
  • Date: Fri, 31 Oct 2003 03:01:44 -0500 (EST)
  • Sender: owner-wri-mathgroup at wolfram.com

While executing my Mathematica routines the kernel often fades away due to
lack of memory. I have no idea which definitions, commands,etc. are
memory consuming, so I tried to figure them out with:
ByteCount@Definition@#&)/@ Names[]. However, in this way I apparently
don't find them as demenstrated below. What else could I try to cope
with this problem?

thank you
g.e.

In[1]:=MemoryInUse[]
<<mma/myprogram_v1.m
MemoryInUse[]

Out[1]=1245696

Out[3]=1374536

In[4]:=sh={2,1,0.85,0.1,-0.85,0.05`,6,0.0001`};
MemoryInUse[]

Out[4]=1376232

In[5]:=Plus @@(ByteCount@Definition@#&)/@ Names[]

Out[5]=207688

In[6]:=k=MyProgram[sh]

Out[6]={2,1,0.711914,0.1,-0.85,0.05,5.03982,0.0001}

In[7]:=MemoryInUse[]

Out[7]=2903536

In[8]:=Plus @@(ByteCount@Definition@#&)/@ Names[]

Out[8]=209344

In[9]:=Share[]

Out[9]=137888

In[10]:=MemoryInUse[]

Out[10]=2767704


  • Prev by Date: Re: fractals in Mathematica
  • Next by Date: Bug or feature?Space and Return in source code
  • Previous by thread: New Plot output in version 5
  • Next by thread: Bug or feature?Space and Return in source code