MSSQL 2016: 无法启动 Service Broker 激活管理器

Microsoft.SQLServer.2016.Cannot_start_service_broker_activation_manager_5_Rule (Rule)

当 Service Broker 无法启动激活管理器时,规则将触发警报。

Knowledge Base article:

摘要

Service Broker 激活有助于应用程序进行动态伸缩以管理消息流量。通常,如果服务的通信流量发生不可预测的变化,或者如果服务必须动态伸缩以处理服务接收到的通信流量,则应用程序将使用激活。

Service Broker 激活流程包括两个步骤。首先,Service Broker 确定是否需要激活。其次,Service Broker 确定是否执行了激活。虽然内部激活和外部激活的确切流程有所不同,但是,这两种策略涉及的总体概念是相同的。

在这种情况下,Service Broker 激活管理器确定需要激活并尝试启动 Service Broker 应用程序,但启动失败。

原因

此错误在 Windows 应用程序日志中记录为 MSSQLSERVER 事件 ID 9701。这可能是服务器启动期间内存不足引起的。这可能与计算机中的一个或多个其他硬件或软件问题相关。

解决方法

调查 Windows 应用程序日志以查找由其他问题引起的错误。

诊断此错误,方法与在内存不足的情况下一样。通过删除次要的应用程序或添加虚拟或物理内存来增加可用内存。

请考虑以下解决方案以增加可用内存: :

可替代参数

名称

说明

默认值

已启用

启用或禁用工作流。

优先级

定义警报优先级。

1

严重性

定义警报严重性。

2

Element properties:

TargetMicrosoft.SQLServer.2016.DBEngine
CategoryEventCollection
EnabledTrue
Event_ID9701
Event Source$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$
Alert GenerateTrue
Alert SeverityError
Alert PriorityNormal
RemotableTrue
Alert Message
MSSQL 2016: 无法启动 Service Broker 激活管理器
{0}
Event LogApplication
CommentMom2016ID='{679F7701-5328-45B1-A617-B88F211E4E77}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}

Member Modules:

ID Module Type TypeId RunAs 
_F6DA1507_12AF_11D3_AB21_00A0C98620CE_ DataSource Microsoft.Windows.EventProvider Default
GenerateAlert WriteAction System.Health.GenerateAlert Default

Source Code:

<Rule ID="Microsoft.SQLServer.2016.Cannot_start_service_broker_activation_manager_5_Rule" Target="SQL2016Core!Microsoft.SQLServer.2016.DBEngine" Enabled="true" ConfirmDelivery="true" Remotable="true" Comment="Mom2016ID='{679F7701-5328-45B1-A617-B88F211E4E77}';MOM2016GroupID={467ECC75-C5DA-42BD-955C-A73BBB51AF74}">
<Category>EventCollection</Category>
<DataSources>
<DataSource ID="_F6DA1507_12AF_11D3_AB21_00A0C98620CE_" Comment="{F6DA1507-12AF-11D3-AB21-00A0C98620CE}" TypeID="Windows!Microsoft.Windows.EventProvider">
<ComputerName>$Target/Host/Property[Type="Windows!Microsoft.Windows.Computer"]/NetworkName$</ComputerName>
<LogName>Application</LogName>
<Expression>
<And>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>EventDisplayNumber</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>9701</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
<Expression>
<SimpleExpression>
<ValueExpression>
<XPathQuery>PublisherName</XPathQuery>
</ValueExpression>
<Operator>Equal</Operator>
<ValueExpression>
<Value>$Target/Property[Type="SQL2016Core!Microsoft.SQLServer.2016.DBEngine"]/ServiceName$</Value>
</ValueExpression>
</SimpleExpression>
</Expression>
</And>
</Expression>
</DataSource>
</DataSources>
<WriteActions>
<WriteAction ID="GenerateAlert" TypeID="SystemHealth!System.Health.GenerateAlert">
<Priority>1</Priority>
<Severity>2</Severity>
<AlertMessageId>$MPElement[Name="Microsoft.SQLServer.2016.Cannot_start_service_broker_activation_manager_5_Rule.AlertMessage"]$</AlertMessageId>
<AlertParameters>
<AlertParameter1>Event ID: $Data/EventDisplayNumber$. $Data/EventDescription$</AlertParameter1>
</AlertParameters>
<Suppression>
<SuppressionValue/>
</Suppression>
</WriteAction>
</WriteActions>
</Rule>