[erlang-questions] Binary constantly growing on erlang 18
Lukas Larsson
lukas@REDACTED
Tue Aug 18 16:14:04 CEST 2015
Hello,
Erlang 18.0 seems to have introduced a memory leak in the tty driver for
unix platforms. This means that when printing to stdout the binary usage
will grow. I believe I have found a solution to the problem.
If you have problems with this leak, using -oldshell removes the leak.
Thanks for reporting this issue.
Lukas
On Tue, Aug 18, 2015 at 2:18 PM, Alexander Petrovsky <askjuise@REDACTED>
wrote:
> Hi!
>
> A few days ago a noticed that erlang vm eat too many memory. I've checked
> system and binary memory and found that it is constantly growing. I'm start
> debugging with recon but without success. After disabling all application
> the memory sill growing.
>
> I've checken on clean vm:
>
> 1> application:which_applications().
> [{stdlib,"ERTS CXC 138 10","2.5"},
> {kernel,"ERTS CXC 138 10","4.0"}]
>
> 2> [begin io:format("~p~n", [erlang:memory(binary)]), timer:sleep(1000)
> end || _ <- lists:seq(1, 5)].
> 2105616
> 2113976
> 2122144
> 2130504
> 2138864
>
> 3> io:format("~p~n", [erlang:memory(binary)]), timer:sleep(5000),
> io:format("~p~n", [erlang:memory(binary)]).
> 3124360
> 3132720
>
> 4> 2138864 - 2105616.
> 33248
>
> 5> 3132720 - 3124360.
> 8360
>
> As you can see, the binary grow non linear and only when I call
> erlang:memory(binary).
>
> System: Debian 7
> Erlang: 18.0 esl-erlang
>
> Can anyone help me?
>
> --
> Петровский Александр / Alexander Petrovsky,
>
> Skype: askjuise
> Phone: +7 914 8 820 815
>
>
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150818/f3d13a62/attachment.htm>
More information about the erlang-questions
mailing list