Erlang - Is it possible to limit the ram consumption when using disc copies in Mnesia? -


i have 4gb ram in system , used 2gb of ram before insertion completed wen using disc_copies. wondering happen if 100 percent of ram consumed? there option limit ram consumed during disc_copies, limiting ram usage 2gb?

if looking how limit erlang vm memory usage should use control groups it. if monitor memory usage should use memory monitor memsup os_mon application.

$ erl -boot start_sasl erlang/otp 18 [erts-7.0] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:false]  ...     =progress report==== 22-oct-2015::22:39:46 ===          application: sasl           started_at: nonode@nohost eshell v7.0  (abort ^g) 1> application:start(os_mon). ...     =progress report==== 22-oct-2015::22:40:03 ===          application: os_mon           started_at: nonode@nohost ok 2>  ... 2> memsup:get_memory_data(). {8162500608,6514708480,{<0.7.0>,426616}} 3> memsup:get_system_memory_data(). [{system_total_memory,8162500608},  {free_swap,5996748800},  {total_swap,5997850624},  {cached_memory,3290759168},  {buffered_memory,444370944},  {free_memory,1647222784},  {total_memory,8162500608}] 4> 

read os_mon documentation usage , alarms.


Comments

Popular posts from this blog

php - Invalid Cofiguration - yii\base\InvalidConfigException - Yii2 -

How to show in django cms breadcrumbs full path? -

ruby on rails - npm error: tunneling socket could not be established, cause=connect ETIMEDOUT -