Description
Hello,
I'm experiencing increasing memory consumption of a notebook until I end up with a "java.lang.OutOfMemoryError: Java heap space", althoug I'm just re-execution the only cell the notebook.
Here is my example using Kotlin Dataframe:
import org.jetbrains.kotlinx.dataframe.DataFrame
import org.jetbrains.kotlinx.dataframe.io.readCSV
val data = DataFrame.readCSV("mydata.csv")
The .csv-file is about 260MB big, but I guess that shouldn't matter, just influence how long it takes to be out of memory.
As I re-execute this cell again and again I can see the memory consumption of the kernel's Java process increase until it hits the memory limit I configured and I end up with the OutOfOfMemoryError. While the kernel keeps the content of data
for subsequent cells, I would expect it to release any old "version" of that variable when I re-execute the cell. Hence, the memory consumption should not increase with every execution.
Seems like a bug to me. Or am I doing it wrong? Or just misunderstanding how it's supposed to work?