This is documentation for Mathematica 6, which was
based on an earlier version of the Wolfram Language.
View current documentation (Version 11.2)

MaxMemoryUsed

MaxMemoryUsed[]
gives the maximum number of bytes used to store all data for the current Mathematica session.
  • On most computer systems, MaxMemoryUsed[] will give results close to those obtained from external process status requests.
  • MaxMemoryUsed[] will not typically account for code space, stack space or the effects of heap fragmentation.
Show the maximum memory used during a session:
In[1]:=
Click for copyable input
Out[1]=
 
See how much the maximum memory used increased for a computation:
In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input
Out[2]=
New in 1