Skip to content

Instantly share code, notes, and snippets.

@rodrigues
Last active April 6, 2019 18:43
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rodrigues/1c248e9e5caaa0b774222c7b687142a0 to your computer and use it in GitHub Desktop.
Save rodrigues/1c248e9e5caaa0b774222c7b687142a0 to your computer and use it in GitHub Desktop.
➜ env MIX_ENV=prod iex -S mix run --preload-modules
Erlang/OTP 21 [erts-10.3.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.8.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(1)> :erlang.memory
[
total: 51579624,
processes: 11315424,
processes_used: 11145888,
system: 40264200,
atom: 1033401,
atom_used: 1007174,
binary: 360208,
code: 23053955,
ets: 2000568
]
iex(2)> Application.ensure_all_started :sasl
{:ok, [:sasl]}
iex(3)> :erlang.memory
[
total: 51642368,
processes: 11180944,
processes_used: 11116208,
system: 40461424,
atom: 1033401,
atom_used: 1010402,
binary: 420712,
code: 23156267,
ets: 2005552
]
➜ _build/prod/rel/hello/bin/hello console
Erlang/OTP 21 [erts-10.3.2] [source] [64-bit] [smp:4:4] [ds:4:4:10] [async-threads:1] [hipe] [dtrace]
Interactive Elixir (1.8.1) - press Ctrl+C to exit (type h() ENTER for help)
iex(hello@127.0.0.1)1> :erlang.memory
[
total: 56843616,
processes: 18718480,
processes_used: 18584296,
system: 38125136,
atom: 992433,
atom_used: 971447,
binary: 223352,
code: 21443760,
ets: 2011728
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment