应用程序池的“空闲超时”值等于或大于“定期重启”时间值

Microsoft.Windows.InternetInformationServices.6.2.Application.pool.has.an.IdleTimeout.equal.to.or.greater.than.the.PeriodicRestart.time (Rule)

Knowledge Base article:

摘要

为确保网站和 Web 应用程序处于隔离状态,必须使用唯一名称配置 Internet Information Services (IIS) 应用程序池并正确配置标识。如果在应用程序池配置过程中发生错误,则此应用程序池可能无法用于所分配的网站和 Web 应用程序。

解决方法

更正应用程序池配置。

按事件日志消息所指示的信息更正应用程序池配置。如果问题仍然存在,请检查 ApplicationHost.config 文件的权限并确保已启动所有所需的服务。在某些情况中,可能需要停止并重新启动 WAS。

通过使用 Internet Information Services (IIS) 管理器,编辑应用程序池配置

若要编辑应用程序池配置,请执行以下操作:

停止并重新启动 WAS

若要停止并重新启动 WAS,请执行以下操作:

注意:停止 WAS 还将停止依赖于它的任何其他服务,包括 World Wide Web 发布服务 (W3SVC)。因此,你还需重新启动 W3SVC 或其他服务。

Element properties:

TargetMicrosoft.Windows.InternetInformationServices.6.2.ApplicationPool
CategoryAlert
EnabledTrue
Alert GenerateFalse
RemotableTrue

Member Modules:

Source Code:

<Rule ID="Microsoft.Windows.InternetInformationServices.6.2.Application.pool.has.an.IdleTimeout.equal.to.or.greater.than.the.PeriodicRestart.time" Enabled="true" Target="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool" ConfirmDelivery="false" Remotable="true" Priority="Normal" DiscardLevel="100">
<Category>Alert</Category>
<DataSources>
<DataSource ID="DS" TypeID="Microsoft.Windows.Server.IIS.6.2.WarningAndErrorEventProvider">
<LogName>System</LogName>
</DataSource>
</DataSources>
<ConditionDetection ID="Filter" TypeID="Microsoft.Windows.InternetInformationServices.6.2.ApplicationPool.EventFilter">
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>5152</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-WAS</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</ConditionDetection>
<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.Application.pool.has.an.IdleTimeout.equal.to.or.greater.than.the.PeriodicRestart.time.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>