[erlang-questions] VM leaking memory
Frank Muller
frank.muller.erl@REDACTED
Fri Feb 1 17:11:11 CET 2019
I tried two solutions to reduce the memory usage of the problematic process:
1. calling garbage:collect/0 after processing N packets (varying N=10..128).
Nothing changed at all and the bin_alloc memory stayed fragmented as you
can see:
http://147.135.36.188:3400/observer_cli_BEFORE.jpg
The call to instrument:carriers/0:
http://147.135.36.188:3400/instrument_carriers.jpg
The call to instrument:allocations/0:
http://147.135.36.188:3400/instrument_allocations.jpg
2. Hibernating the process after processing N packets (varying N=10..128).
The HIT rates went above 90% immediately.
http://147.135.36.188:3400/observer_cli_AFTER.jpg
What is the effect of hibernating this process on the long term?
This process is receiving about ~1200 packets/sec under normal load and can
reach ~3000 packets/sec under heavy load.
Is there a better way of solving the problem by tweeting the bin allocator
SBC/MBC?
/Frank
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20190201/b862ced2/attachment.htm>
More information about the erlang-questions
mailing list