[erlang-questions] Binary constantly growing on erlang 18

Alexander Petrovsky <>
Tue Sep 22 10:47:04 CEST 2015


Thanks!

2015-09-22 11:46 GMT+03:00 Lukas Larsson <>:

> yes it does. The fix was released in 18.0.3 I believe.
>
> On Tue, Sep 22, 2015 at 10:29 AM, Alexander Petrovsky <>
> wrote:
>
>> Hello,
>>
>> Does this commit fix the problem —
>> https://github.com/erlang/otp/commit/d2bb1ca56dcd0ab8e5b43c4368409317c3ddd4db
>>  ?
>>
>> 2015-08-18 17:14 GMT+03:00 Lukas Larsson <>:
>>
>>> 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 <
>>> > 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
>>>> 
>>>> http://erlang.org/mailman/listinfo/erlang-questions
>>>>
>>>>
>>>
>>
>>
>> --
>> Петровский Александр / Alexander Petrovsky,
>>
>> Skype: askjuise
>> Phone: +7 914 8 820 815
>>
>>
>


-- 
Петровский Александр / Alexander Petrovsky,

Skype: askjuise
Phone: +7 914 8 820 815
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20150922/206a97e1/attachment.html>


More information about the erlang-questions mailing list