[erlang-questions] Still memory leak in SSL

Ingela Andin ingela.andin@REDACTED
Fri Aug 17 12:06:50 CEST 2018


Hi!

A possible workaround is to provide your own session_db callback module
that does not create session tables. A session reuse is per connection,
disabling session reuse does not take
away the sessions tables only their use. The path away form this problem
(at least in the long run) I think is implementing session tickets instead
of the original session reuse strategy.

Regards Ingela Erlang OTP Team - Ericsson Ab

2018-08-14 14:34 GMT+02:00 Attila Rajmund Nohl <attila.r.nohl@REDACTED>:

> Attila Rajmund Nohl <attila.r.nohl@REDACTED> ezt írta (időpont: 2018.
> aug. 14., K, 10:09):
> >
> > Hello!
> >
> > I'm facing the same problem as mentioned in
> > https://groups.google.com/d/msg/erlang-programming/
> xWpKjeG21Ys/mfoOkjzwBgAJ
> >
> > Unfortunately I can't upgrade to Erlang 20 (or later). I did apply the
> > https://github.com/erlang/otp/commit/256e01ce80b3aadd63f303b9bda572
> 2ad313220f
> > patch on the 19.3.6.9 sources, but I still have the problem. I also
> > tried to disable the session reuse (i.e. pass {reuse_sessions, false}
> > to ssl:listen) too, still the ETS memory usage grows in the VM to 8
> > GB. I need to triple check that indeed the patched version ran, but do
> > you have any idea what else could cause this? Of course, this only
> > happens at outside-organization test and I can't reproduce the leakage
> > locally :-(
>
> Managed to reproduce the problem locally: it looks like the client
> creates SSL sessions at a faster rate (around 200/sec) then the
> session_validator removes them (around 150/sec). So the session cache
> grows about 50 entries/sec.
> _______________________________________________
> erlang-questions mailing list
> erlang-questions@REDACTED
> http://erlang.org/mailman/listinfo/erlang-questions
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20180817/d4285a91/attachment.htm>


More information about the erlang-questions mailing list