# Julia + Notebook memory leak

**URL:** https://discourse.julialang.org/t/julia-notebook-memory-leak/63830
**Category:** Data
**Tags:** jupyter
**Created:** [June 30, 2021, 1:05pm UTC](https://discourse.julialang.org/t/julia-notebook-memory-leak/63830 "2021-06-30T13:05:10Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![nilshg](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nilshg/32/2283_2.png) [@nilshg](https://discourse.julialang.org/u/nilshg)
#### Post date: [June 30, 2021, 1:49pm UTC](https://discourse.julialang.org/t/julia-notebook-memory-leak/63830/2 "2021-06-30T13:49:18Z")

</div>

There was a discusison on this already here: [How to release memory from jupyter notebook? - #5 by nilshg](https://discourse.julialang.org/t/how-to-release-memory-from-jupyter-notebook/56886/5)

You can try the `empty!(Out)` command, but that would only do anything if you have large outputs in your cells.

I’ve been experiencing similar issues and have never fully been able to deal with them, nor produce anything reliably reproducible and diagnoseable to file any issues (given that this is just something that crops up after a few hours of analysis on large data sets). One thing that has helped me is switching large string columns in my data to `ShortString`s and `PooledArray`s, which generally speeds up all sorts of operations on DataFrames, but also seems to mitigate the slow memory creep you describe.

---

_[View the full topic](https://discourse.julialang.org/t/julia-notebook-memory-leak/63830)._
