Vagrant with PHP + MySQL + Linux + Puphpet + ZF2 too slow

2

I have a Windows-based environment with ZF2, Doctrine, and MySQL that runs very fast.

But now I'm experimenting with Vagrant with the machine configured through Puphpet. I was able to make the system work in this environment, but it is extremely slow. And when I do MySQL directly from the console, it's super fast. I did not make configuration changes either in PHP or MySQL.

Would you have some light to give me?

    
asked by anonymous 05.01.2015 / 19:58

1 answer

2

Vagrant is known to have some performance issues, the most common being related to file synchronization.

The Vagrant documentation provides alternatives to remedy the problem using NFS. This only works on linux. If your machine host is Windows, you can use synchronization via SMB .

Other potential points that can cause slowness are:

  • Low memory available
  • Few cores ( colors ) for processing
  • Problem with the Virtual Box provider
06.01.2015 / 16:05