TheSquad
TheSquad

Reputation: 7506

Erlang Tip&Tricks reducing memory footprint for gen_server ssl socket

Does anyone would have an idea on how to reduce memory footprint for an Erlang gen_server ssl socket oriented ?

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.

Like:

I'm really looking for any idea that would drastically reduce memory footprint !

EDIT 1 : I'm already using hibernate_after option.

Upvotes: 2

Views: 489

Answers (1)

sg2342
sg2342

Reputation: 61

If your application does not need support for TLS session reuse, you could set the session_cb environment parameter of the ssl application to your own "NULL implementation".

Upvotes: 2

Related Questions