# Memory usage blow up on julia 1.9

**URL:** <https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869>\
**Category:** General Usage\
**Tags:** gc\
**Created:** [September 15, 2023, 1:10am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869 "2023-09-15T01:10:57Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [September 15, 2023, 1:10am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/1 "2023-09-15T01:10:57Z")

</div>

Our in-house application has been seeing huge memory usage spikes since our upgrade to 1.9 (5x what was used before). Has anyone else experienced that? [The new feature is a likely culprit](https://julialang.org/blog/2023/04/julia-1.9-highlights/#memory_usage_hint_for_the_gc_with_--heap-size-hint), but we’re still early in our investigation.

---

<div class="post-metadata">

**Author:** ![abraemer](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/abraemer/32/51403_2.png) [@abraemer](https://discourse.julialang.org/u/abraemer)\
**Post date:** [September 15, 2023, 4:58am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/2 "2023-09-15T04:58:21Z")

</div>

Yes, there are quite a few issues on github about that: e.g. [#50658](https://github.com/JuliaLang/julia/issues/50658), [#49545](https://github.com/JuliaLang/julia/issues/49545), [#49761](https://github.com/JuliaLang/julia/issues/49761). These should be fixed on 1.10, so I’ recommend staying on 1.8 if the memory is an issue for you and waiting for 1.10.

---

<div class="post-metadata">

**Author:** ![ranocha](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/ranocha/32/35588_2.png) [@ranocha](https://discourse.julialang.org/u/ranocha)\
**Post date:** [September 15, 2023, 7:07am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/3 "2023-09-15T07:07:58Z")

</div>

We have experienced that, too, with [Trixi.jl](https://github.com/trixi-framework/Trixi.jl). In some cases, passig a `--heap-size-hint` to Julia solved the issues for us.

---

<div class="post-metadata">

**Author:** ![Alexei\_Andreev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexei_andreev/32/22788_2.png) [@Alexei\_Andreev](https://discourse.julialang.org/u/Alexei_Andreev)\
**Post date:** [September 18, 2023, 10:00am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/4 "2023-09-18T10:00:30Z")

</div>

Just updated to Julia 1.9.3 and noticed the memory usage blow up to. Very sad.

---

<div class="post-metadata">

**Author:** ![cstjean](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/cstjean/32/1444_2.png) [@cstjean](https://discourse.julialang.org/u/cstjean)\
**Post date:** [September 18, 2023, 7:46pm UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/5 "2023-09-18T19:46:43Z")

</div>

Manual `GC.gc()` calls has fixed the issue for us; knowing the fix is in 1.10 we’re OK with it.

---

<div class="post-metadata">

**Author:** ![Alexei\_Andreev](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/alexei_andreev/32/22788_2.png) [@Alexei\_Andreev](https://discourse.julialang.org/u/Alexei_Andreev)\
**Post date:** [March 29, 2024, 10:32am UTC](https://discourse.julialang.org/t/memory-usage-blow-up-on-julia-1-9/103869/6 "2024-03-29T10:32:10Z")

</div>

After upgrading to 1.10.2 all of our memory issues disappeared. Everything is running much faster too. Well done, Julia team!
