MemoryInUse

MemoryInUse[]
gives the number of bytes currently being used to store all data in the current Wolfram Language kernel session.

MemoryInUse[$FrontEnd]
gives the number of bytes used in the Wolfram System front end.

ExamplesExamplesopen allclose all

Basic Examples  (2)Basic Examples  (2)

Current memory use in the kernel:

In[1]:=
Click for copyable input
Out[1]=
In[2]:=
Click for copyable input

Storing a million elements of takes additional memory:

In[3]:=
Click for copyable input
Out[3]=

Current memory use in the front end:

In[1]:=
Click for copyable input
Out[1]=
Introduced in 1988
(1.0)
| Updated in 2007
(6.0)