[转]Erlang 大量写入出警报

Posts - 71  Articles - 6  Comments - 7

[集]erlang常用配置文件收集

1、在disc_copy类型的表时,有两个参数影响出现Mnesia is overloaded: {dump_log, write_threshold}错误

默认参数是dump_log_write_threshold 50000 -mnesia dc_dump_limit 40, 可以用下面命令修改这俩参数:

erl -mnesia dump_log_write_threshold 100 -mnesia dc_dump_limit 4

ok,下面说下这俩参数代表的意思:

dc_dump_limit:磁盘备份表从内存中被抛弃的时间间隔

dump_log_time_threshold:在新垃圾回收之前的最大的写入数(貌似翻译的不是很准哈,你能看明白就好~_~)

查看: mnesia_monitor:get_env(dump_log_write_threshold).

设置: mnesia_monitor:get_env(dump_log_write_threshold, 5000).

5000这个值可以自己定。

2、在ets表中默认一个结点只能有1400个ets表,可以用

erl -evn ERL_MAX_ETS_TABLES 10000来设定

The number of tables stored at one Erlang node is limited. The current default limit is approximately 1400 tables. The upper limit can be increased by setting the environment variable ERL_MAX_ETS_TABLES before starting the Erlang runtime system (i.e. with the -env option to erl/werl). The actual limit may be slightly higher than the one specified, but never lower.

原文地址:https://www.cnblogs.com/freebird92/p/2315044.html