Apache 2.4 is running very Slow on Windows 8 - 64 bit

社会主义新天地 提交于 2019-12-10 15:36:26

问题


I install apache 2.4 on my pc. it run very slow often. page title in Internet Explorer show "waiting for localhost" with loading icon! installed softwares:

windows 8 64bit > 
            Apache2.4 64bit
            php 5 64bit
            MySQL 5 64bit
            phpMyAdmin 4

problem is not for mySQL ... when its shutdown , problem is still there. I have searched and find solutions but they were not helpful.like:

  • add "127.0.0.1 localhost" >>> to C:\Windows\System32\Drivers\etc\hosts
  • add "EnableMMAP on" and "EnableSendfile on" on httpd.conf
  • enable and set realpath_cache_size= 4m on php.in

any idea?


回答1:


Is this problem occuring on other browsers than Internet Explorer?

If not it might be related to Apache's Multi-Processing Module optimized for Windows NT. This has been named as one of the possible causes for a very unresponsive / hanging Apache.

The fix would be to add this to your httpd.conf:

AcceptFilter http none
AcceptFilter https none

See my blog post on this topic for more information.




回答2:


I had the same problem, I had the 64bit version of WAMP installed. I exported by databases (mySql). Uninstalled WAMP, downloaded and installed the 32bit version. Imported my databases. The speed difference was VERY noticeable... You might want to give that a try.




回答3:


It seems that there is an issue with localhost dns resolution on windows 8. Following the instructions in this article did it for me:

http://othermachines.com/blog/solving-performance-issues-windows-8-wampserver-drupal



来源:https://stackoverflow.com/questions/18812213/apache-2-4-is-running-very-slow-on-windows-8-64-bit

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!