cloudstack/docs/tmp/en-US/epub/OEBPS/set-database-buffer-pool-si...

14 lines
1.9 KiB
HTML
Raw Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /><title>21.3. Set Database Buffer Pool Size</title><link rel="stylesheet" type="text/css" href="Common_Content/css/default.css" /><link rel="stylesheet" media="print" href="Common_Content/css/print.css" type="text/css" /><meta name="generator" content="publican 2.8" /><meta name="package" content="" /></head><body><div class="section" id="set-database-buffer-pool-size"><div class="titlepage"><div><div><h1 class="title" id="set-database-buffer-pool-size">21.3. Set Database Buffer Pool Size</h1></div></div></div><div class="para">
It is important to provide enough memory space for the MySQL database to cache data and indexes:
</div><div class="orderedlist"><ol><li class="listitem"><div class="para">
Edit the Tomcat configuration file:
</div><pre class="programlisting">/etc/my.cnf</pre></li><li class="listitem"><div class="para">
Insert the following line in the [mysqld] section, below the datadir line. Use a value that is appropriate for your situation. We recommend setting the buffer pool at 40% of RAM if MySQL is on the same server as the management server or 70% of RAM if MySQL has a dedicated server. The following example assumes a dedicated server with 1024M of RAM.
</div><pre class="programlisting">innodb_buffer_pool_size=700M</pre></li><li class="listitem"><div class="para">
Restart the MySQL service.
</div><pre class="programlisting"># service mysqld restart</pre></li></ol></div><div class="para">
For more information about the buffer pool, see "The InnoDB Buffer Pool" at <a href="http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html">MySQL Reference Manual</a>.
</div></div></body></html>