2017-09-16 87 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"