[erlang-questions] discrepancy of memory usage figures

Andy W. Song wsongcn@REDACTED
Thu Jun 23 05:39:50 CEST 2011

When I run my WebSocket test, I found the following interesting memory usage

1. Server stated, no connection
44 processes,
*System:705M, *
*Erlang Residence:519M*

2. 100K Connections
100044 processes,
*System: 1814M, *
*Erlang Residence: 950M*

3. 200K Connections ( restart server and create from 0 connection, not
continue from case 2)
200044 processes,
*System:3383M, *
*Erlang: 1837M*

The figures in red are provided htop, others are output of memory() call
from erlang shell. Please look at the total and erlang residence memory.
When there is no connection, these two are roughly same, with 100K
connections, residence memory is a little larger than total, with 200K
connections, residence memory is almost double the total.

Can anybody explain?

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20110623/1254a8d3/attachment.htm>

More information about the erlang-questions mailing list