<div dir="ltr">Let me add that it is often a good idea to separate your data directories from your code directories. Preferably by volume and quota as well. While here, establish logs isolated as well and make sure they are rotated so they only use a limited amount of memory. If possible, enable disk_sup or make a warning system so you can detect situations where you are about to run low on disk through the alarm_handler.<div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 22, 2017 at 9:32 PM Dan Gudmundsson <<a href="mailto:dangud@gmail.com">dangud@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><div><span style="font-family:Courier,monospace;font-size:medium"><br></span></div><div style="font-family:Courier,monospace;font-size:medium"><span style="font-family:Courier,monospace;font-size:medium">You can set the core dir with the config parameter:</span></div><div><font face="Courier, monospace" size="3"><a href="http://erlang.org/doc/man/mnesia.html#write_lock_table-1" target="_blank">http://erlang.org/doc/man/mnesia.html#write_lock_table-1</a></font><br></div><div><font face="Courier, monospace" size="3"><br></font></div><font face="Courier, monospace" size="3">erl -mnesia core_dir Directory</font>  <br></div><br><div class="gmail_quote"><div dir="ltr">On Mon, May 22, 2017 at 8:02 PM Sergey Safarov <<a href="mailto:s.safarov@gmail.com" target="_blank">s.safarov@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><p dir="ltr">You can change working directory to separate volume with limited size. As example mount to. /run/myapp directory "tmp" volume with size 10 Mbyte. Then cd to /run/myapp</p>
<br><div class="gmail_quote"><div dir="ltr">пн, 22 мая 2017, 13:21 Mithun B <<a href="mailto:mithunb@utl.in" target="_blank">mithunb@utl.in</a>>:<br></div></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Hi all,<br>
<br>
     I have an application using Mnesia Database running is a memory<br>
constrained environment. So is there any way to disable MnesiaCore file<br>
creation by when something goes wrong with Mnesia which is a default<br>
case? Or is it possible to give limit on the size of file or constraint<br>
on count of files?<br>
<br>
     Since the MnesiaCore file gets created with different name each<br>
time, it will not overwrite the previous one. It casuses flooding of<br>
MnesiaCore files in the working directory of my application, if the<br>
application has crashed for multiple times.<br>
<br>
Regards,<br>
<br>
Mithun B<br>
<br>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>
_______________________________________________<br>
erlang-questions mailing list<br>
<a href="mailto:erlang-questions@erlang.org" target="_blank">erlang-questions@erlang.org</a><br>
<a href="http://erlang.org/mailman/listinfo/erlang-questions" rel="noreferrer" target="_blank">http://erlang.org/mailman/listinfo/erlang-questions</a><br>
</blockquote></div>