Hey folks. A couple of you have come to me with problems saying that the vagrant VM is very slow. There are three reasons for this, mostly because needing to turn on debugging for new users is a bit trickier than turning off debugging.
- Apache is running only one thread. The reason for this is to be able to attach a debugger to that thread or to run Devel::NYTProf to figure out where things are slow. You can adjust this by editing /etc/apache2/apache2.conf and setting the servers to something a bit more sane, like:
- The VM is execution capped to 50% of available CPU. This is to make sure that the machine doesn't chew through every ounce of foreground power if like me, you leave it running. In the Vagrantfile:
config.vm.provider :virtualbox do |vb|
vb.customize ["modifyvm", :id, "--cpuexecutioncap", "50"]
vb.customize ["modifyvm", :id, "--memory", 1024]
You can tweak those to be a bit more sane for your environment
Best of debugging!