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.

Examples

open allclose all

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 t 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]=

Possible Issues  (1)

See Also

MemoryConstrained  MaxMemoryUsed  ByteCount  Share  $HistoryLength

Tutorials

Introduced in 1988
(1.0)
| Updated in 2007
(6.0)