# Track memory usage

**URL:** https://discourse.julialang.org/t/track-memory-usage/52158
**Category:** General Usage
**Tags:** question
**Created:** [December 21, 2020, 8:34am UTC](https://discourse.julialang.org/t/track-memory-usage/52158 "2020-12-21T08:34:05Z")
**Posts on this page:** 1
**Showing post:** 2

<div class="post-metadata">

### Author: ![lmiq](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/lmiq/32/18314_2.png) [@lmiq](https://discourse.julialang.org/u/lmiq)
#### Post date: [December 21, 2020, 10:11am UTC](https://discourse.julialang.org/t/track-memory-usage/52158/2 "2020-12-21T10:11:48Z")

</div>

You can track allocations using this: [Profiling · The Julia Language](https://docs.julialang.org/en/v1/manual/profile/#Memory-allocation-analysis)

Maybe that can help, if you leave the process running for a while (or different spans of time), and check where allocations are occurring.

Here I give an example (because the manual is not as direct): [Disabling allocations - #10 by lmiq](https://discourse.julialang.org/t/disabling-allocations/51028/10)

Depending on your problem, you could check the memory usage and call the GC (I have used this before solving some problems in a parallel code, afterwards it was not useful anymore): [https://discourse.julialang.org/t/garbage-collector-behaviour-when-memory-is-almost-full](https://discourse.julialang.org/t/garbage-collector-behaviour-when-memory-is-almost-full)

---

_[View the full topic](https://discourse.julialang.org/t/track-memory-usage/52158)._
