<div dir="ltr"><div><div>If your MySQL is dying because of lack of memory, this is a sign that you need to upgrade your RAM, adding at least 1GB more, not to add swap.<br><br></div>I understand the economical aspect, but today the price per GB of RAM is cheaper than ever.<br><br></div><div>If your provider is charging too much for your budget, and price is your first priority, you can find really cheap OpenVZ options here <a href="https://lowendbox.com/tag/openvz/">https://lowendbox.com/tag/openvz/</a><br></div><div><br></div><div>There are providers offering servers per year and others with 5GB RAM servers for $5/month.<br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Wed, Jan 8, 2020 at 5:06 PM Jeffrey Walton &lt;<a href="mailto:noloader@gmail.com">noloader@gmail.com</a>&gt; wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Wed, Jan 8, 2020 at 3:01 PM Paulo Coghi - Coghi IT<br>
&lt;<a href="mailto:paulocoghi@gmail.com" target="_blank">paulocoghi@gmail.com</a>&gt; wrote:<br>
&gt;<br>
&gt; By default, OpenVZ doesn&#39;t allow swap creation inside containers. And this is a good thing.<br>
<br>
I think that depends on the metric used.<br>
<br>
A small swapfile would be most useful and economical for us.<br>
<br>
I think the lack of a swapfile and OOM kills are the worst choice<br>
because they create a DoS in practice. Users cannot access our wiki<br>
because MySQL was killed.<br>
<br>
Jeff<br>
</blockquote></div>