简体   繁体   English

Windows 64位上的Apache 32位问题

[英]Issues with Apache 32 bit on Windows 64 bit

I have a Windows 7 Enterprice 64 bit and with 8GB RAM and I run a localhost with PHP, Apache and MySQL. 我有一个Windows 7 Enterprice 64位,并具有8GB RAM,并且我使用PHP,Apache和MySQL运行本地主机。 However, Apache is (officially) still in 32-bit binary. 但是,Apache(正式地)仍然是32位二进制文​​件。 And my system is performing at a enormously low speed... Is this a common problem or are there any tips or trics to boost my performance? 而且我的系统正在以极低的速度运行...这是一个普遍的问题吗?或者是否有任何技巧或指标可以提高我的性能?

tl;dr version : It is not the 32-bit Apache that is slowing it down. tl; dr版本不是 32位Apache降低了它的速度。

We would need more information to determine the cause of the problem but my guess is that it isn't the fact Apache is 32bit and Windows is 64bit. 我们将需要更多信息来确定问题的原因,但我想这不是Apache是​​32位而Windows是64位的事实。

The main difference between 32 and 64bit applications is that 64bit applications can access more memory directly (normally over about 3.5GB). 32位和64位应用程序之间的主要区别在于64位应用程序可以直接访问更多内存(通常超过3.5GB)。

Apache itself is not particularly slow, it is all the modules you load with it (PHP, Python, mod_rewrite, etc). Apache本身并不是特别慢,它是您使用它加载的所有模块(PHP,Python,mod_rewrite等)。

It is most likely one (or more) of the following: 它很可能是以下一项(或多项):

  • High Requests/sec - you have a high number of requests per second 高请求数/秒 - 每秒有大量请求
  • High Processing Overhead - programs/scripts are using a lot of memory/CPU 高处理开销 -程序/脚本占用大量内存/ CPU
  • Poorly Written Programs/Scripts - programs/scripts are inefficient or leaking memory 程序/脚本编写不正确 -程序/脚本效率低下或内存泄漏
  • Other Processes - other programs on your PC (including Windows itself) may be using up your memory/CPU such as MySQL 其他进程-PC上的其他程序(包括Windows本身)可能正在耗尽内存/ CPU,例如MySQL

Apache 64bit builds do not generally outperform the 32bit builds by more than 5%. Apache 64位版本通常不会比32位版本高出5%以上。

The only time I've seen a major slowdown running Apache on Windows was due to anti-virus software running. 我唯一一次看到Windows上运行Apache的速度大幅下降是由于运行了防病毒软件。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM