The "DBSS - Long Lock Running" alarm in Foglight SQL PI is designed to notify when a SQL Server process is blocked for longer than defined thresholds (e.g., Warning at 10s, Critical at 20s, Fatal at 30s). However, users may notice that alarms do not fire precisely at these intervals, and shorter-duration locks (such as 10 or 29 seconds) may not trigger alarms immediately.
The "DBSS - Long Lock Running" alarm notifies administrators when a SQL Server process has been blocked for longer than a user-defined threshold (e.g., 10, 20, or 30 seconds). The SQL PI (Performance Investigator) engine queries SQL Server every second to detect blocking events, using the `engine.olap.dmvRequestsFrequencyMS=1000` setting.
Key Points:
However, the alarm evaluation (when Foglight decides whether to fire an alarm) is based on the aggregation/processing interval, defined by `engine.olap.resolverIntervalMinutes` (minimum 1 minute). This means:
Example:
This behavior is by design due to the architecture of SQL PI and the resolver interval. To summarize:
Example Scenario
With a Warning condition of 10 seconds, Foglight may eventually fire an alarm stating "At least one process has been blocked for more than 10.0 seconds," but the alarm will not be fired until up to a minute after the blocking begins. If you set Critical at 20 seconds and Fatal at 30 seconds, and a block event lasts 31 seconds, the first alarm that will fire is the Fatal alarm.
Best Practice
© ALL RIGHTS RESERVED. Terms of Use Privacy Cookie Preference Center