[erlang-questions] Erlang and Memory management

Pierpaolo Bernardi <>
Tue May 31 11:20:52 CEST 2011

On Tue, May 31, 2011 at 11:13, Roberto Ostinelli <> wrote:
> Dear list,
> I'd like to know some inner insights on how memory is handled in Erlang.
> Let's say that I build up a Binary term() in a gen_server, which I store in
> its state, and then send it over to another gen_server which will also store
> this term into its state.
> My question is: will this Binary term occupy 2 * memory space or is there
> some kind of pointer mechanism to handle it?

This is explained here:


More information about the erlang-questions mailing list