浏览 1719 次
锁定老帖子 主题:小小的参数设置耗费大量内存
精华帖 (0) :: 良好帖 (0) :: 新手帖 (0) :: 隐藏帖 (0)
|
|
---|---|
作者 | 正文 |
发表时间:2008-11-04
> 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内存呀, 我们完全用不到这么多进程, 所以系统微调真的要很小心。 声明:ITeye文章版权属于作者,受法律保护。没有作者书面许可不得转载。
推荐链接
|
|
返回顶楼 | |
发表时间:2008-11-05
参数设置当然要小心了
|
|
返回顶楼 | |