dougang1965 2015-08-31 19:55
浏览 103
已采纳

XAMPP,WAMP,类似:xdebug速度慢

I use XAMPP on windows 7, with Visual Studio and XDebug. But in 2 years not solved the big problem, and now im very frustrated. Localhost Wordpress websites in my localhost xampp server are very too slow.

Load a page take 3-4 seconds with XDebug enabled, 1-2 seconds if disabled. This is incredible for many reasons like:

1) My PC is super fast: 2xSSD, 16GB RAM, 8CORE CPU, but XAMPP not use my power and stay slow.

2) When website is live on a shared hosting of 80$/years, it is more fast.

With this situation performance seem not related to PC power, so I think if i have for example 128GB RAM, 10xSSD in RAID and more, performance stay same. But how can be this possible?

I already tried all solutions found on web:

1) Enabled PHP accellerator (not change nothing)

2) Enable / disable lots of php.ini options

3) Encrease php memory limit

4) Change host file of windows.

Nothing improve performance. I not think i will found a solution, but if there is someone that can explain me why hardware can not improve performance is almost a useful info :)

Thank you!

  • 写回答

1条回答 默认 最新

  • donglaohua1671 2016-08-12 08:06
    关注

    I found a partial solution, disable xdebug and enable it only when required:

    1. Open php.int from XAMPP > Apache > config > php.int
    2. Move these line to top: zend_extension = "C:\xampp\php\ext\php_xdebug-2.2.6-5.5-vc11.dll" (or your path)
    3. Disable it most of time with char ; and when I need the debug I uncomment it and restart apache
    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论

报告相同问题?

悬赏问题

  • ¥15 素材场景中光线烘焙后灯光失效
  • ¥15 请教一下各位,为什么我这个没有实现模拟点击
  • ¥15 执行 virtuoso 命令后,界面没有,cadence 启动不起来
  • ¥50 comfyui下连接animatediff节点生成视频质量非常差的原因
  • ¥20 有关区间dp的问题求解
  • ¥15 多电路系统共用电源的串扰问题
  • ¥15 slam rangenet++配置
  • ¥15 有没有研究水声通信方面的帮我改俩matlab代码
  • ¥15 ubuntu子系统密码忘记
  • ¥15 保护模式-系统加载-段寄存器