{"id":234,"date":"2015-07-02T20:01:26","date_gmt":"2015-07-03T04:01:26","guid":{"rendered":"https:\/\/cloudinsidr.com\/content\/?p=234"},"modified":"2015-12-22T19:27:25","modified_gmt":"2015-12-23T03:27:25","slug":"mariadb-running-out-of-memory-and-what-you-can-do-about-it","status":"publish","type":"post","link":"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/","title":{"rendered":"MariaDB Running Out of Memory? Here Is What You Can Do About It"},"content":{"rendered":"<p>On small virtual servers with insufficient memory, MariaDB can give you a lot of trouble. It will crash, refuse to restart, and populate logs with errors. If trading your virtual server for another host is temporarily not an option, you can implement a quick fix.<\/p>\n<p><!--more--><\/p>\n<p>Open the configuration file:<\/p>\n<pre class=\"\">\/etc\/my.cnf.d\/server.cnf<\/pre>\n<p>and find a line that reads:<\/p>\n<pre class=\"\">[mysqld]<\/pre>\n<p>Right after\u00a0it, enter:<\/p>\n<pre class=\"\">performance_schema = off<\/pre>\n<p>to make sure\u00a0MariaDB goes easy on RAM-expensive caching. The result will look something like this:<\/p>\n<pre class=\"\"># this is only for the mysqld standalone daemon\r\n[mysqld]\r\nperformance_schema = off<\/pre>\n<p>Now restart MariaDB:<\/p>\n<pre class=\"\">service mysql restart<\/pre>\n<p>and you are done. That shoulf fix the crashes on underspec&#8217;d virtual servers.<\/p>\n<p>You can read more about this here:<br \/>\n<a href=\"https:\/\/mariadb.com\/blog\/starting-mysql-low-memory-virtual-machines\" target=\"_blank\">https:\/\/mariadb.com\/blog\/starting-mysql-low-memory-virtual-machines<\/a><\/p>\n","protected":false},"excerpt":{"rendered":"<p>On small virtual servers with insufficient memory, MariaDB can give you a lot of trouble. It will crash, refuse to restart, and populate logs with errors. If trading your virtual server for another host is temporarily not an option, you can implement a quick fix.<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_genesis_hide_title":false,"_genesis_hide_breadcrumbs":false,"_genesis_hide_singular_image":false,"_genesis_hide_footer_widgets":false,"_genesis_custom_body_class":"","_genesis_custom_post_class":"","_genesis_layout":"","footnotes":""},"categories":[1],"tags":[],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v14.5 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>MariaDB Running Out of Memory? Here Is What You Can Do About It - CloudInsidr<\/title>\n<meta name=\"robots\" content=\"index, follow\" \/>\n<meta name=\"googlebot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<meta name=\"bingbot\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"MariaDB Running Out of Memory? Here Is What You Can Do About It - CloudInsidr\" \/>\n<meta property=\"og:description\" content=\"On small virtual servers with insufficient memory, MariaDB can give you a lot of trouble. It will crash, refuse to restart, and populate logs with errors. If trading your virtual server for another host is temporarily not an option, you can implement a quick fix.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/\" \/>\n<meta property=\"og:site_name\" content=\"CloudInsidr\" \/>\n<meta property=\"article:published_time\" content=\"2015-07-03T04:01:26+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2015-12-23T03:27:25+00:00\" \/>\n<meta name=\"twitter:card\" content=\"summary\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebSite\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/\",\"name\":\"CloudInsidr\",\"description\":\"Cyber security, infotech\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":\"https:\/\/www.cloudinsidr.com\/content\/?s={search_term_string}\",\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/#webpage\",\"url\":\"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/\",\"name\":\"MariaDB Running Out of Memory? Here Is What You Can Do About It - CloudInsidr\",\"isPartOf\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#website\"},\"datePublished\":\"2015-07-03T04:01:26+00:00\",\"dateModified\":\"2015-12-23T03:27:25+00:00\",\"author\":{\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/www.cloudinsidr.com\/content\/mariadb-running-out-of-memory-and-what-you-can-do-about-it\/\"]}]},{\"@type\":[\"Person\"],\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#\/schema\/person\/dd6ee9cb21cf05763fd7cff3d6f11b2b\",\"name\":\"Cloud Insidr\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\/\/www.cloudinsidr.com\/content\/#personlogo\",\"inLanguage\":\"en-US\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/8b2fa1415b3d573b97d818b8f8f83b7c?s=96&d=mm&r=g\",\"caption\":\"Cloud Insidr\"}}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","_links":{"self":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/234"}],"collection":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/comments?post=234"}],"version-history":[{"count":3,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/234\/revisions"}],"predecessor-version":[{"id":237,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/posts\/234\/revisions\/237"}],"wp:attachment":[{"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/media?parent=234"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/categories?post=234"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.cloudinsidr.com\/content\/wp-json\/wp\/v2\/tags?post=234"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}