Hi Morgan,<div><br></div><div>If your SSL socket is mostly idle, the option <font face="'courier new', monospace">{ hibernate_after, integer() }</font>, which can be passed as one of the options to <font face="'courier new', monospace">ssl:connect</font> or <font face="'courier new', monospace">ssl:listen</font>, might help.</div>
<div><br></div><div>Regards,</div><div><br></div><div>Jeroen<br><br><div class="gmail_quote">On Sat, Apr 21, 2012 at 1:33 PM, Morgan Segalis <span dir="ltr"><<a href="mailto:msegalis@gmail.com">msegalis@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Does anyone would have an idea on how to reduce memory footprint for an Erlang gen_server ssl socket oriented ?<br>
Right now each client (gen_server) has a something like 128 Ko in memory. while in C++ I have more something like 40 Ko per client.<br>
I'm using gproc as a pub/sub, each client connected is stored in it.<br>
<br>
Like:<br>
<br>
- Changing the ssl cipher, would it change the memory footprint ?<br>
- Changing the buffer size ?<br>
- … ?<br>
<br>
I'm really looking for any idea that would drastically reduce memory footprint...<br>
Even system oriented advice would be good, like changing /proc/sys/tcp/*<br>
<br>
Thank you !<br>
mGs<br>
<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>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div>Jeroen Koops</div><div><br></div><div>M: <a href="mailto:koops.j@gmail.com" target="_blank">koops.j@gmail.com</a></div><div>T: +31-6-55590300</div><br>
</div>