データ量の多いサイトだとパフォーマンスが悪くて、仕方がないので、
メモリ数を増やす。
変更前
デフォルトだと、589M割り当てられている。
[vagrant@vagrant-centos65 ~]$ free -m
total used free shared buffers cached
Mem: 589 545 44 0 5 41
-/+ buffers/cache: 497 91
Swap: 1224 7 1217
Vagrantfileにメモリ数を指定
config.vm.provider "virtualbox" do |vb|
# # Display the VirtualBox GUI when booting the machine
# vb.gui = true
#
# # Customize the amount of memory on the VM:
vb.memory = "2048"
end
変更後
[vagrant@vagrant-centos65 ~]$ free -m
total used free shared buffers cached
Mem: 1877 1194 682 0 9 547
-/+ buffers/cache: 637 1240
Swap: 1224 0 1224
誤差があるが、あとで調べてみよう。
ついでにMySQLのバッファサイズも増やす
[mysqld] innodb_buffer_pool_size=1024M innodb_log_file_size=128M
