My Symfony 2 website is slow (+10 seconds for simple page), how can I find the problem?
I use Vagrant Box on a Macbook Air 8go.
My Symfony 2 website is slow (+10 seconds for simple page), how can I find the problem?
I use Vagrant Box on a Macbook Air 8go.
In Vagrant there is problem with VirtualBox filesyste (it is slow) .
Run NFS Server and change sharefs (in vagrant config) to NFS. I can tell how to do this on win/linux, but not on mac
Cache - move to folder that is outside share (for example ~/app/cache
) - you need to change cache dir in AppKernel
http://symfony.com/doc/current/cookbook/configuration/override_dir_structure.html#override-cache-dir
Move vendors outside share (for example ~/app/cache
) - neet to change paht in composer.json
http://symfony.com/doc/current/cookbook/configuration/override_dir_structure.html#override-the-vendor-directory