Apache 2.4 is running very Slow on Windows 8 - 64

2019-06-28 09:05发布

问题:

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