This alert will calculate the average blocking time per session and helps you understand the severity of the issue. It is similar to the Total Wait Time for Blocking - Repository alert in that it uses the data already in the repository, but instead of returning a total amount of blocking time, it divides that by the number of sessions being blocked. For example, there could be 200 sessions being blocked for 2-3 seconds, and you would get 600 seconds of blocking and be notified with the other alert mentioned. However, the problem is not too bad because each individual session was not blocked very long. However, if the scenario was instead 20 sessions blocked for 600 seconds, this alert would give you 30 seconds on average which may be a different severity.
Also see the Alternative section below if you want to retrieve the session with the maximum blocking time, i.e. the worst case scenario.
To create the alert, click on Alerts > Manage Alerts tab and create a Custom Alert of type Custom SQL Alert - Single Numeric Return. Configure the alert with values similar to these:
Alert Name: Blocking Time per Session
Execution Interval: <= 10 Minutes down to 1 Minute
Notification Text: This instance just had a blocking problem where the average blocking time per session is below.
Active Database Instances: Add the Ignite Repository DB only
SQL Statement (Pick the proper statement below depending on if your Repository is on SQL Server or Oracle)
SolarWinds solutions are rooted in our deep connection to our user base in the THWACK® online community.
More than 150,000 members are here to solve problems, share technology and best practices, and directly
contribute to our product development process.
Learn more today by joining now.