Closed talesh closed 9 years ago
Thanks. Still very strange. TTFB (time to first byte) for remote VM - 200ms. TTFB for local Vagrant on same machine can be 30 seconds! That just is not right! (That was with 3 CPUs and 3GB memory.) There must be something silly I am overlooking or have misconfigured.
I do find that the 'default' mode is not efficient. Adding 'SetEnv MAGE_MODE developer' to the root .htaccess file does help. (Trying to work out best place to change the mode - I guess apache config files rather than touching the .htaccess file which is 'part of the core'.)
Hi Alan,
If you are using Puppet you can 'SetEnv' from your config.yaml. Also I am not sure if your box has an opcode cache installed/configured (APC or Zend Opcache), that will help dramatically.
Maybe take a look at http://puphpet.com for a pre-built box. I'm offline all day today, but will check in tonight EST.
-Talesh.
Hi Alan,
I thought I'd merge in something I discovered today playing with M2 and Vagrant. Pageloads are CPU bottlenecked until you allocate 4 cpus to the virtual machine. Then it seems to be disk IO bottlenecked. 2 is a good starting point though.