Citrix Systems 4.2 Tuning, Performance Monitoring, Increase Management Server Maximum Memory

Models: 4.2

1 272
Download 272 pages 63.23 Kb
Page 259
Image 259

Chapter 21.

Tuning

This section provides tips on how to improve the performance of your cloud.

21.1. Performance Monitoring

Host and guest performance monitoring is available to end users and administrators. This allows the user to monitor their utilization of resources and determine when it is appropriate to choose a more powerful service offering or larger disk.

21.2. Increase Management Server Maximum Memory

If the Management Server is subject to high demand, the default maximum JVM memory allocation can be insufficient. To increase the memory:

1. Edit the Tomcat configuration file:

/etc/cloud/management/tomcat6.conf

2.Change the command-line parameter -XmxNNNm to a higher value of N.

For example, if the current value is -Xmx128m, change it to -Xmx1024m or higher.

3.To put the new setting into effect, restart the Management Server.

#service cloud-management restart

For more information about memory issues, see "FAQ: Memory" at Tomcat Wiki.1

21.3. Set Database Buffer Pool Size

It is important to provide enough memory space for the MySQL database to cache data and indexes:

1. Edit the Tomcat configuration file:

/etc/my.cnf

2.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.

innodb_buffer_pool_size=700M

3.Restart the MySQL service.

#service mysqld restart

1http://wiki.apache.org/tomcat/FAQ/Memory

249

Page 259
Image 259
Citrix Systems 4.2 manual Tuning, Performance Monitoring, Increase Management Server Maximum Memory