[erlang-questions] VM leaking memory

Gerhard Lazu gerhard@REDACTED
Fri Feb 1 11:44:13 CET 2019


Hi Frank,

The binary_alloc seems to be the one misbehaving (not 100% sure, see
> attached screenshot).
>

I agree, it's your binary_alloc. How many single block carriers in
binary_alloc do you have? What about multi-block carriers? Can you share a
recon_alloc snapshot?


> Is there a way to tweak this allocator strategy SBC/MBC? Lukas Larsson
> maybe?
>

For us, RabbitMQ, defaulting to a lower multi-block carrier size (+MBlmbcs
<http://erlang.org/doc/man/erts_alloc.html#M_lmbcs>) as well as changing
the allocation strategy (+MBas
<http://erlang.org/doc/man/erts_alloc.html#M_as>) made a positive
difference. From the screenshot that you've shared, I am guessing that this
won't work for you. This is the process that we went through at RabbitMQ:
https://groups.google.com/forum/#!msg/rabbitmq-users/LSYaac9frYw/LNZDZUlrBAAJ

I found Lukas' Erlang Memory Management Battle Stories from 2014 to be a
great erts_alloc companion:
http://www.erlang-factory.com/static/upload/media/139454517145429lukaslarsson.pdf
& https://www.youtube.com/watch?v=nuCYL0X-8f4
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190201/566f0146/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: IMG_6339.jpg
Type: image/jpeg
Size: 137037 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190201/566f0146/attachment.jpg>


More information about the erlang-questions mailing list