Vagrant +多个WP:性能突然下降。 TTFB = 1分钟+

时间:2017-08-31 08:24:39

标签: php wordpress vagrant nfs vagrantfile

大家好!

我已经使用Varying Vagrant Vagrants已经有一段时间了(2年),并且在顺利工作之后突然间,它现在需要TTFB 1分钟或更长时间...我最近做的唯一改变是更新java,下载并安装新的SDK(不在虚拟机上,但在实际的mac上)

有没有人有想法去哪儿看?没有PHP错误,它发生在我/ www /的所有网站上 (我有30个)

  • VV版本1.12
  • Vagrant 1.8.1
  • VirtualBox的
  • Mac,El Capitan
  • 启用NFS
  • Vagrantfile:CPU核心1

我的VagrantFile

    Vagrant.configure("2") do |config|

  # Store the current version of Vagrant for use in conditionals when dealing
  # with possible backward compatible issues.
  vagrant_version = Vagrant::VERSION.sub(/^v/, '')

  # Configurations from 1.0.x can be placed in Vagrant 1.1.x specs like the following.
  config.vm.provider :virtualbox do |v|
    v.customize ["modifyvm", :id, "--memory", 1024]
    v.customize ["modifyvm", :id, "--cpus", 1]
    v.customize ["modifyvm", :id, "--natdnshostresolver1", "on"]
    v.customize ["modifyvm", :id, "--natdnsproxy1", "on"]

    # Set the box name in VirtualBox to match the working directory.
    vvv_pwd = Dir.pwd
    v.name = File.basename(vvv_pwd)
  end

  # Configuration options for the Parallels provider.
  config.vm.provider :parallels do |v|
    v.update_guest_tools = true
    v.optimize_power_consumption = false
    v.memory = 1024
    v.cpus = 1
  end

  # Configuration options for the VMware Fusion provider.
  config.vm.provider :vmware_fusion do |v|
    v.vmx["memsize"] = "1024"
    v.vmx["numvcpus"] = "1"
  end

  # Configuration options for Hyper-V provider.
  config.vm.provider :hyperv do |v, override|
    v.memory = 1024
    v.cpus = 1
  end

0 个答案:

没有答案