[99s-extend] Cowboy HTTPS connection memory usage

Loïc Hoguin essen at ninenines.eu
Fri Dec 21 12:45:23 CET 2012


On 12/21/2012 04:34 AM, rambocoder wrote:
> Does anybody know either from benchmarks or real world data what is the
> average memory footprint of each concurrent HTTPS connection to cowboy?

I don't have anything, sorry. I'm guessing it consumes a lot more than 
TCP though.

> SSL app in Erlang reuses SSL session-ids so I am not sure if the Apache
> Bench I test with reuses the session id or it does not.

I wouldn't know, but I wouldn't trust Apache Bench doing the right 
thing. Any other benchmark tool usually works better in my experience.

> BTW, what makes an erlang api "documented" vs "undocumented". For
> example ssl:session_info/1 function here (
> https://github.com/erlang/otp/blob/maint/lib/ssl/src/ssl.erl#L411 ) has
> a spec and a short doc, but session_info is not described
> http://www.erlang.org/doc/man/ssl.html .ssl:session_info/1 is a useful
> function to be able to track if the load generator is reusing the SSL
> session_id or it is generating new one, because that would make all the
> difference during measurement due to Erlang caching SSL sessions by default.

The documentation is separate (they're not using edoc). It's perhaps not 
deemed useful enough for documenting it. I wouldn't worry about using it 
for measurements though.

Try asking Ingela on the ML about it, perhaps they just forgot to 
document it.

-- 
Loïc Hoguin
Erlang Cowboy
Nine Nines
http://ninenines.eu



More information about the Extend mailing list