Scale up as you grow — whether you're running one virtual machine or ten thousand.

From GPU-powered inference and Kubernetes to managed databases and storage, get everything you need to build, scale, and deploy intelligent applications.

This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!
These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.
Hello @jplafata ,
Since you are running a Droplet with 1GB RAM, it is likely that the hardware resources are causing the out of memory errors. We recommend you to upgrade to a higher Droplet plan. However, you can always check with optimizing the MySQL instance, and then resize the Droplet as a last resort.
Potential solutions to out of memory problem are:
Note that the longer your server has been running before using this, the more accurate its suggestions will be. These settings are adjusted in /etc/my.cnf. You can get an example of the memory usage from your current or proposed settings with this calculator: http://www.mysqlcalculator.com
Based on your local memory status (free -m), you can adjust innodb_buffer_pool_size and key_buffer_size values in my.cnf file, so that MySQL doesn’t allocate more memory than available. You can also optimize MySQL service variables like max_connections, query_cache_limit, etc. Here’s an article that sheds more light on optimizing MySQL configuration parameters for servers running out of memory: https://www.percona.com/blog/2016/05/03/best-practices-for-configuring-optimal-mysql-memory-usage/
Reduce your web application’s reliance on MySQL for page loads. This can usually be done by adding static caching to your application. For example, Joomla has caching as a built-in feature that can be enabled. Another example, WordPress can use plugins (like WP Super Cache) to add in this kind of functionality.
Check what applications and processes are using RAM (e.g. by using ‘top’ command). A common culprit is Apache. If your server is short on memory, you can benefit by limiting requests during high load, rather than serving them and having MySQL or other processes killed when memory runs out. MaxClients/MaxRequestWorkers directives can be used to manage these limits in Apache.
Resize up to a larger droplet. With any server utilizing a MySQL database, the size and type of data stored can significantly affect memory requirements. An upgraded server with more resources will likewise cost more money, so you should only go through with resizing if you’ve already tried other routes, and it truly ends up being your best option.
Hope this helps!
Cheers, Lalitha