增加或禁用阻止的进程阈值

适用于:SQL Server

此规则检查 blocked process threshold 选项是否已设置为 0(禁用),或者是否已设置为大于或等于 5(秒)的值。 将 blocked process threshold 选项设置为从 1 到 4 的值可能会导致死锁监视器不断运行。 值 1 到 4 应仅用于故障排除,决不应在没有 Microsoft 客户服务与支持部门的协助下长期使用或在生产环境中使用。

最佳做法建议

若要解决此问题,请将 blocked process threshold 选项设置为 5(秒)或更大的值,或者通过将值设置为 0 来禁用阻塞的进程阈值。 若要将阻塞的进程阈值设置为值 5 秒,请执行以下语句:

sp_configure 'show advanced options', 1 ;
GO
RECONFIGURE ;
GO
sp_configure 'blocked process threshold', 5 ;
GO
RECONFIGURE ;
GO

更多信息

blocked process threshold 服务器配置选项