alankent / vagrant-magento2-apache-base

Base Vagrant image for building Magento 2 within
58 stars 29 forks source link

Possible performance improvement. #1

Closed talesh closed 9 years ago

talesh commented 9 years ago

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.

alankent commented 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'.)

talesh commented 9 years ago

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.