Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I check memory usage in Elixir?

Tags:

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
like image 726
Matheus Gontijo Avatar asked Mar 08 '17 17:03

Matheus Gontijo


People also ask

How can I see how much memory is being used by Erlang?

You'll see the processes running on each Erlang setup, as well as on the host. Every Elixir (or Ruby, or Node.js) setup on AppSignal includes an automatically generated dashboard showing RSS memory usage. For Erlang setups, this allows you to see the overall memory usage of each Erlang process that you have running.

How to check memory usage on my computer?

How to Check Memory Usage on My Computer 1 Double-click the "My PC" icon. 2 Right-click the C: hard drive icon. 3 Click Properties. 4 Click the General tab. 5 Review your hard drive's storage. See More....

What is wrong with Elixir?

Every programming language has its limits and flaws. Memory leaks or resource leaks causes performance issues and memory. In recent days, I found the same issue with Elixir, it might be developers coding bug or it may be rogue module acting insane. Today, we will discuss both issues.

What does the memory usage graph show?

The memory usage graph plots the memory usage of processes, system, binary, ets and code This can be especially useful for you to discover situations where a Genserver is hogging memory, for example, when a process holds a lot of data in its state that's kept in memory.


1 Answers

:erlang.memory(:total) was what I was looking for. Thanks for @Dogbert

like image 125
Matheus Gontijo Avatar answered Oct 21 '22 15:10

Matheus Gontijo