[erlang-questions] gen_server state is not released for gc

Volodymyr Kyrychenko vladimir.kirichenko@REDACTED
Fri Jan 13 18:33:02 CET 2012

Hi. Here is simple gen_server that holds binary in its state and never
releases it.


1> X = myserver:start_link("/tmp/1.cache").
2> myserver:info().
3> myserver:release().
4>  myserver:info().
7> memory(binary).

How come there are 2 references on it and what to do to free this binary?

Best Regards,
Volodymyr Kyrychenko

More information about the erlang-questions mailing list