论坛首页 综合技术论坛

小小的参数设置耗费大量内存

浏览 1719 次
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
作者 正文
   发表时间:2008-11-04  
> I only have 3Gb of memory in my accelerator at Joyent and I'm trying
> to launch 10 nodes. beam starts with RSS of about 135Mb and quickly
> goes to 500Mb+.
>
> How can I minimize the footprint of my running nodes?
>
> I'm starting slaves like this:
>
> common_args() ->
>     "+K true +P 134217727 -smp disable".
>
You will lower the memory footprint significantly by removing +P option or
using a much lower value for it (the number of simultaneously existing
processes that
the system can handle). I am pretty sure you don't need the maximum
value there, you will run out of memory in one node before you reach
134 millions of processes and I am
pretty sure that your system will not handle millions of simultaneous
poker players (in one Erlang-node)
The value +P 134217727 will result in a memory requirement of 4 times
134217727 bytes = 536870908 bytes = 536 Mbytes for the Erlang node
just to hold the process-table.


/Kenneth Erlang/OTP, Ericsson

536M内存呀, 我们完全用不到这么多进程, 所以系统微调真的要很小心。

   发表时间:2008-11-05  
参数设置当然要小心了
0 请登录后投票
论坛首页 综合技术版

跳转论坛:
Global site tag (gtag.js) - Google Analytics