Matheus Gontijo
Matheus Gontijo

Reputation: 1307

How can I check memory usage in Elixir?

Is that possible to check memory usage in Elixir? (maybe calling Erlang)

This is what I want to achieve:

  1. Check total memory usage - let's say 1G of 8G
  2. Read a 4G file
  3. Check total memory usage - let's say 5G of 8G

Upvotes: 14

Views: 4749

Answers (1)

Matheus Gontijo
Matheus Gontijo

Reputation: 1307

:erlang.memory(:total) was what I was looking for. Thank you Dogbert for pointing this out in your comment.

Upvotes: 20

Related Questions