在Apache的logs/error.log中经常出现如下记录:
[Fri Mar 16 17:28:49 2007] [warn](OS 64)指定的网络名不再可用。
[Fri Mar 16 17:28:49 2007] [warn] (OS 64)指定的网络名不再可用。
出现这个故障时硬盘灯狂闪,内存占用极大,导致网站访问极慢。(网上介绍,非亲眼所见)
解决方法:
主要是说这 AcceptEx() 是 Microsoft WinSockv2 API 一组提升网络效率 API 中的指令。而且在 Windows 上似乎蛮有可能出问题的。
apache2.0~2.3
<IfModulempm_winnt.c>
Win32DisableAcceptEx
EnableMMAP Off
EnableSendfile Off
ThreadsPerChild 1700
MaxRequestsPerChild 0
</IfModule>
Apache2.4
<IfModulempm_winnt.c>
AcceptFilter httpnone
AcceptFilter https none
EnableMMAP Off
EnableSendfile Off
ThreadsPerChild 1700
MaxRequestsPerChild 0
</IfModule>
总结:
apache2.0用 “Win32DisableAcceptEx”而apache2.4用的是“AcceptFilter httpnone”和“AcceptFilter httpsnone”