pangeo-data / jupyter-earth

Jupyter meets the Earth: combining research use cases in geosciences with technical developments within the Jupyter and Pangeo ecosystems.
https://jupytearth.org
Creative Commons Zero v1.0 Universal
28 stars 6 forks source link

Closing Julia sessions doesn't release memory #163

Open JordiBolibar opened 1 year ago

JordiBolibar commented 1 year ago

This is a little bit Julia specific, but the behaviour is not normal, so I'm wondering if this might come from the JupyterHub. Whenever one closes a Julia session, in theory all memory should be released. Currently, this is not the case for me, and even when closing the session all previously used memory is still used. I need to manually kill the process with its PID in order to release all memory.

Is there anything that could explain this strange behaviour? Thanks a lot in advance!

JordiBolibar commented 1 year ago

After some feedback from the Julia community, this seems like a problem from IJulia...

https://github.com/JuliaLang/IJulia.jl/issues/977

https://github.com/JuliaLang/IJulia.jl/issues/785

It seems there are problems with the Julia garbage collector on Jupyter servers.