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 sqlite 附加(attach database)加密数据库时,返回26是什么原因呢?
  • ¥88 找成都本地经验丰富懂小程序开发的技术大咖
  • ¥15 如何处理复杂数据表格的除法运算
  • ¥15 如何用stc8h1k08的片子做485数据透传的功能?(关键词-串口)
  • ¥15 有兄弟姐妹会用word插图功能制作类似citespace的图片吗?
  • ¥200 uniapp长期运行卡死问题解决
  • ¥15 latex怎么处理论文引理引用参考文献
  • ¥15 请教:如何用postman调用本地虚拟机区块链接上的合约?
  • ¥15 为什么使用javacv转封装rtsp为rtmp时出现如下问题:[h264 @ 000000004faf7500]no frame?
  • ¥15 乘性高斯噪声在深度学习网络中的应用