mirror of
https://github.com/apache/cloudstack.git
synced 2025-10-26 08:42:29 +01:00
18 lines
1.4 KiB
XML
18 lines
1.4 KiB
XML
<?xml version='1.0' encoding='utf-8' ?>
|
|
<!DOCTYPE section PUBLIC "-//OASIS//DTD DocBook XML V4.5//EN" "file:///C:/Program%20Files%20(x86)/Publican/DocBook_DTD/docbookx.dtd" [
|
|
<!ENTITY % BOOK_ENTITIES SYSTEM "cloudstack.ent">
|
|
%BOOK_ENTITIES;
|
|
]>
|
|
<section id="set-database-buffer-pool-size">
|
|
<title>Set Database Buffer Pool Size</title>
|
|
<para>It is important to provide enough memory space for the MySQL database to cache data and indexes:</para>
|
|
<orderedlist>
|
|
<listitem><para>Edit the Tomcat configuration file:</para><programlisting>/etc/my.cnf</programlisting></listitem>
|
|
<listitem><para>2. 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.</para>
|
|
<programlisting>innodb_buffer_pool_size=700M</programlisting></listitem>
|
|
<listitem><para>Restart the MySQL service.</para><programlisting># service mysqld restart</programlisting></listitem>
|
|
</orderedlist>
|
|
<para>For more information about the buffer pool, see "The InnoDB Buffer Pool" at <ulink url="http://dev.mysql.com/doc/refman/5.5/en/innodb-buffer-pool.html">MySQL Reference Manual</ulink>.</para>
|
|
</section>
|
|
|