WWW 服务启用全局带宽限制失败

Microsoft.Windows.InternetInformationServices.6.2.WWW.service.failed.to.enable.global.bandwidth.throttling (Rule)

Knowledge Base article:

摘要

可以配置 Internet Information Services (IIS) World Wide Web 发布服务 (W3SVC) 来收集性能数据并进行 HTTP 压缩。 如果将 W3SVC 配置为执行 HTTP 压缩,则必须在 NTFS 卷中指定有效的压缩目录。

解决方法

启用“数据包计划程序”功能

带宽限制使用“数据包计划程序”来管理何时发送数据包。当配置站点以通过 IIS 管理器来使用带宽限制时,将自动安装数据包计划程序,同时 IIS 自动设置带宽限制为最小 1024 千字节/秒 (KBps)。然而,如果你使用另一种方法,如 Active Directory® Service Interfaces (ADSI) 或 WMI,则必须启用数据包计划程序以便带宽限制正常工作。

启用数据包计划程序

若要启用数据包计划程序,请执行以下操作:

安装 QoS 数据包计划程序

若要安装 QoS 数据包计划程序,请执行以下操作:

Element properties:

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

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.WWW.service.failed.to.enable.global.bandwidth.throttling" 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>System</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery Type="String">PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value Type="String">Microsoft-Windows-IIS-W3SVC</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<RegExExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>MatchesRegularExpression</Operator>
<Pattern>^(1071|1073)$</Pattern>
</RegExExpression>
</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.WWW.service.failed.to.enable.global.bandwidth.throttling.AlertMessage"]$</AlertMessageId>
</WriteAction>
</WriteActions>
</Rule>