2017-09-16 116 views
1

我有一台新电脑,戴尔Inspiron 17 7000系列。这是笔记本电脑:Symfony非常慢:30秒

  • i7-6500U CPU @ 2.50GHz,2601兆赫
  • 16转到RAM
  • 512莫SSD
  • 的Windows 10,Wampserver 3.0.6和PHP7和OPCache

但与Symfony(新的应用程序,juste 3苗条控制器),我的应用程序是非常缓慢... 30秒:/

这是我的php.ini var:

- realpath_cache_size = 12288K 
- realpath_cache_ttl = 1800 
- opcache.max_accelerated_files=60000 

你能帮帮我吗?

enter image description here

+0

能你尝试使用php bin/console服务器运行服务器:启动并检查执行时间? – KondukterCRO

+0

这是更快,〜3/4秒:) –

+0

开发模式没关系。所以问题在于wamp服务器。 – KondukterCRO

回答

2

最有可能是因为启用了XDebug的。 它与Windows上的许多PHP应用程序发生,不仅与Symfony。

正如所讨论的here,尝试禁用 “remote_autostart” 和 “profiler_enable” 模式:

xdebug.remote_autostart = 0 
xdebug.profiler_enable = 0 

甚至注释掉在启用了XDebug行,如果上面没有帮助:

;zend_extension = "/absolute/path/to/your/xdebug-extension.so"