Gay*_*d.P 1 php apache symfony
我有一台新计算机,戴尔 Inspiron 灵越 17 7000 系列。这是笔记本电脑:
\n\n但是使用 Symfony(新应用程序,只需 3 个超薄控制器),我的应用程序非常慢...... 30 秒:/
\n\n这是我的php.ini变量:
- realpath_cache_size = 12288K\n - realpath_cache_ttl = 1800\n - opcache.max_accelerated_files=60000\nRun Code Online (Sandbox Code Playgroud)\n\n你能帮助我吗 ?
\n\n\n很可能是因为启用了 XDebug。Windows 上的许多 PHP 应用程序都会发生这种情况,而不仅仅是 Symfony。
正如此处所讨论的,尝试禁用“remote_autostart”和“profiler_enable”模式:
xdebug.remote_autostart = 0
xdebug.profiler_enable = 0
Run Code Online (Sandbox Code Playgroud)
或者甚至注释掉启用 XDebug 的行(如果上面没有帮助):
;zend_extension = "/absolute/path/to/your/xdebug-extension.so"
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2164 次 |
| 最近记录: |