Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <h3>Use 50% of available RAM to test:</h3> <p>You can decrease the innodb_buffer_pool_size very low to see if it helps:</p> <pre><code>#/etc/my.cnf innodb_buffer_pool_size = 1M </code></pre> <p>A rule of thumb is to set innodb_buffer_pool_size to 50% of available RAM for your low memory testing. This means you start the server and everything <em>except</em> MySQL InnoDB. See how much RAM you have. Then use 50% of that for InnoDB.</p> <p>To try many low-memory settings at once:</p> <ul> <li><a href="http://paragasu.wordpress.com/2008/12/02/very-low-memory-mysql-5-mycnf-configuration/" rel="noreferrer">http://paragasu.wordpress.com/2008/12/02/very-low-memory-mysql-5-mycnf-configuration/</a></li> </ul> <p>A more likely culprit is whatever else is on that server, such as a webserver.</p> <h3>Apache?</h3> <p>Are you using Apache and/or another webserver? If so, try to decrease its RAM usage. For example in Apache conf, consider low RAM settings like these:</p> <pre><code>StartServers 1 MinSpareServers 1 MaxSpareServers 5 MaxClients 5 </code></pre> <p>And cap the requests like this:</p> <pre><code>MaxRequestsPerChild 300 </code></pre> <p>Then restart Apache.</p> <h3>mod_wsgi:</h3> <p>If you're using Apache with mod_python, switch to Apache with mod_wsgi.</p> <h3>Pympler:</h3> <p>If it's still happening, possibly your Django is steadily growing. Try Django memory profiling with Pympler:</p> <ul> <li><a href="http://www.rkblog.rk.edu.pl/w/p/profiling-django-object-size-and-memory-usage-pympler/" rel="noreferrer">http://www.rkblog.rk.edu.pl/w/p/profiling-django-object-size-and-memory-usage-pympler/</a></li> </ul> <h3>SAR:</h3> <p>Your report of once-per-day failures, then once-per-week failures, could point to some kind of cron job running daily or weekly. For example, perhaps there's a batch process that takes up a lot of RAM, or a database dump, etc. </p> <p>To track RAM use and look for RAM spikes in the hour before MySQL dies, take a look at SAR, which is a great tool: <a href="http://www.thegeekstuff.com/2011/03/sar-examples/" rel="noreferrer">http://www.thegeekstuff.com/2011/03/sar-examples/</a></p>
    singulars
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    3. VO
      singulars
      1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload