<div dir="ltr"><div><div>Hi!<br><br></div>Did you try observing your system with the observer application? You should be able to get much better information of what Erlang processes consume a lot of memory and<br></div><div>why.<br><br><br></div><div>Regards Ingela Erlang/OTP Team - Ericsson AB<br></div><div><br></div><div><div><div><div class="gmail_extra"><br><div class="gmail_quote">2015-02-20 20:19 GMT+01:00 Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">As an addendum: I apologise because this cannot be clearly seen in the charts (I forgot to "humanise" the axis), but we're talking about a steady RAM usage of 4.5GB without SSL, in comparison to blowing up a node with 30GB with SSL.<div><br></div><div>Best,</div><div>r.</div></div><div class="HOEnZb"><div class="h5"><div class="gmail_extra"><br><div class="gmail_quote">On Fri, Feb 20, 2015 at 3:11 PM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto@widetag.com" target="_blank">roberto@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr">Dear List,<div>Given the amount of answers I got in this post, I want to follow up and give some additional information.</div><div><br></div><div>After struggling for quite a while, I just did a comparison between using SSL connections vs standard TCP connections.</div><div>The results are quite impressive.<br></div><div><br></div><div>This is the diagram of memory evolution for a system under load, with SSL:</div><div><a href="https://cldup.com/cNOc8hS004-2000x2000.png" target="_blank">https://cldup.com/cNOc8hS004-2000x2000.png</a><br></div><div><br></div><div>This is the same system, but without SSL:</div><div><a href="https://cldup.com/sx3RrdMR8o-3000x3000.png" target="_blank">https://cldup.com/sx3RrdMR8o-3000x3000.png</a><br></div><div><br></div><div>You can clearly see that using standard TCP connections the system is extremely stable.</div><div>Using SSL connections, on the other hand, results in RAM memory having very erratic behavior that ends up blowing up the node.<br></div><div><br></div><div>Not sure what to do with this information, except that I'm going to use a SSL termination (HAProxy or ELB) and have my Erlang node run without SSL.</div><div><br></div><div>If anyone is curious just ping me.</div><div><br></div><div>Best,</div><div>r.</div><div><br></div><div><br></div><div><br></div><div><br></div></div><div><div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 28, 2015 at 8:09 PM, Roberto Ostinelli <span dir="ltr"><<a href="mailto:roberto.ostinelli@widetag.com" target="_blank">roberto.ostinelli@widetag.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">That's a valid point, and I can clarify.<br>
<br>
During the first phase, all the long lived connections are made. During the second phase, newly-created short lived connections send messages to the long lived ones.<br>
<br>
The long lived connection are all connected when the first memory increase phase ends, which is when the short-lived connections start sending messages.<br>
<br>
What is unclear to me is why the second memory increase phase happens quite some time after these short lived processes have started sending messages.<br>
<div><div><br>
<br>
> On 28/gen/2015, at 20:02, Anton Lebedevich <<a href="mailto:mabrek@gmail.com" target="_blank">mabrek@gmail.com</a>> wrote:<br>
><br>
> The graph looks really weird for me assuming that the load applied to<br>
> the system is stable. Why does it go down for a short time and then<br>
> jumps higher than it was?<br>
</div></div></blockquote></div><br></div>
</div></div></blockquote></div><br></div>
</div></div><br>_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
<br></blockquote></div><br></div></div></div></div></div>