Hi, Here's related issue. https://issues.scala-lang.org/browse/SI-4331
Restart interpreter will be the only way to release memory. It looks like there're some unreleased memory for keeping variable and generated class, even if you're manually releasing reference to the object, like var myObject = new MyObject .... myObject = null Thanks, moon On Mon, Jul 25, 2016 at 10:48 PM Sachin Janani <sjan...@snappydata.io> wrote: > Hi All, > I was looking into the spark interpreter code to understand how it works > and found that it is using Spark REPL for executing scala code.As per my > understanding spark REPL will not do GC unless we restart the > interpreter.So my question here is > 1) if we are using Spark interpreter will the variables that we create will > ever be destroyed without restarting the interpreter? > 2) Have someone faced any issue related to GC in interpreter process > before? > > > Thanks and Regards, > Sachin J >