HTTP 伺服器無法初始化,因為可用記憶體不足

Microsoft.Windows.InternetInformationServices.6.2.HTTP.Server.was.unable.to.initialize.due.to.a.shortage.of.available.memory (Rule)

Knowledge Base article:

摘要

若要成功執行其活動,Internet Information Services (IIS) World Wide Web Publishing 服務 (W3SVC) 在檔案存取、記憶體可用性和網路連線方面不可發生任何 I/O 錯誤。此外,用到的所有指令碼都必須可供存取且在執行中,而且必須正確設定所有的 Include 檔。

解決方式

檢查可用的記憶體

如需有關 IIS 記憶體過低問題的詳細資訊,請參閱文章「 如何使用 IIS 偵錯診斷工具來疑難排解 IIS 處理序的記憶體流失問題」。

您也可以使用以下連結來深入了解伺服器上可用的記憶體:

Memory\Available MBytes 效能

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.WebServer
CategoryAlert
EnabledTrue
Event_ID2204
Event SourceMicrosoft-Windows-IIS-W3SVC-WP
Alert GenerateFalse
RemotableTrue
Event LogApplication

Member Modules:

ID Module Type TypeId RunAs 
DS DataSource Microsoft.Windows.EventProvider Default
WA WriteAction Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription Default

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.HTTP.Server.was.unable.to.initialize.due.to.a.shortage.of.available.memory" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.WebServer" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC-WP</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>2204</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="WA" TypeID="Microsoft.Windows.Server.IIS.6.2.GenerateAlertAction.SuppressedByDescription">
<Priority>1</Priority>
<Severity>1</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.Windows.InternetInformationServices.6.2.HTTP.Server.was.unable.to.initialize.due.to.a.shortage.of.available.memory.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>