Actually relate my this post.But I don't want to clear all memory took up by Mathematica.
memory:=Row[{"Memory Used:",MemoryInUse[]/1024^2.," MB"}]
memory
(* Memory Used:109.582 MB *)
a=RandomInteger[1,{10^8}];
memory
(* Memory Used:871.666 MB *)
b=RandomInteger[1,{10^8}];
memory
(* Memory Used:1634.61 MB *)
I want to clear the variable a
and release the space took up by variable a
but keep the b
. Is possible?
$HistoryLength=0
andClear[a]
? $\endgroup$Out
cells and make sure they're not anywhere in theDownValues
forOut
either. I say, this should stay open. $\endgroup$