VMware and Moodle

VMware and Moodle

- Mark Little の投稿
返信数: 2
Hi,

We are experiencing slowness of our Moodle installation..

VMware ESX Server 3.5
Quad Server running at 2.992 ghz with 8GB memory

Windows 2003 Standard Server R2 running latest Wamp installation

Apache 2.2.8
php 5.2.6
mysql 5.051b
eAccelerator v0.9.5.2
Zend Extension Manager v1.2.0
Zend Optimizer v3.2.8

eAccelerator settings -
Memory Size 268,435,416 Bytes
Memory Available 217,247,312 Bytes
Memory Allocated 51,188,104 Bytes
Cached Scripts 688
Removed Scripts 0
Cached Keys 248

php
max_execution_time = 60
max_input_time = 120
memory_limit = 512M

mysql
max_connections=255
query_cache_size=1024M
table_cache=2048
tmp_table_size=512M
thread_cache_size=12
key_buffer_size=256M

read_buffer_size=64K
read_rnd_buffer_size=256K


What would be the best settings?

Thanks
Mark




Mark Little への返信

Re: VMware and Moodle

- Ken Wilson の投稿
Hi Mark

Some thoughts:
  1. One factor that may be relevant is how much memory is allocated to the virtual machine. With query_cache_size set to 1024M, the RAM allocation would have to be more than 1GB otherwise you may get disk threshing occurring.
  2. Try also lowering the eaccelarator settings to about 48MB, the rule of thumb is to set it to the size of the moodle/ directory as that's the maximum amount of code eaccelerator should compile.
  3. The mysql settings will depend on your activity and how long the server has been running, so you need to adjust and fine-tune daily, then weekly, then monthly until things have settled-down.
Remember that you'll also need to optimise the host operating system when running ESX server. If you've done done so already, see this document (http://www.vmware.com/pdf/vi_performance_tuning.pdf) for more info.

Hope this is useful!

Ken