You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: support/sql/database-engine/agent/job-failed-error-258.md
+11-3Lines changed: 11 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -64,7 +64,7 @@ This issue can be caused by any of the following underlying problems:
64
64
GO
65
65
```
66
66
67
-
Analyze the query output for any jobs which are enabled but have failed, make note of when the next run for the job is scheduled.
67
+
Analyze the query output for any jobs which are enabled but have failed. Investigate the job history and job-step outputs for any problematic jobs to identify and fix underlying issues.
68
68
69
69
1. Detect blocking on `msdb` Agent system tables by running the following query in SSMS:
70
70
@@ -81,9 +81,17 @@ This issue can be caused by any of the following underlying problems:
81
81
```
82
82
83
83
1. If blocking sessions are found, investigate the blocking query using `sys.dm_exec_requests` and `sys.dm_exec_sql_text`. Then, resolve or kill the blocking session.
84
-
1. Check the system health extended events for any worker, thread, or resource issues by running the queries provided in [Understand and resolve SQL Server blocking problems](/troubleshoot/sql/database-engine/performance/understand-resolve-blocking).
84
+
1. Check the `system_health` Extended Events session for any worker, thread, or resource issues by running the following query in SSMS:
85
85
86
-
Inspect the query results for `QUERY_PROCESSING`, `RESOURCE`, and `SYSTEM` components. Look for thread exhaustion, memory pressure, or CPU issues. For guidance on analyzing the system health extended events, see [Use the system_health session](/sql/relational-databases/extended-events/use-the-system-health-session).
86
+
```tsql
87
+
SELECT CAST(xet.target_data as xml) AS target_data
88
+
FROM sys.dm_xe_session_targets xet
89
+
JOIN sys.dm_xe_sessions xe
90
+
ON xe.address = xet.event_session_address
91
+
WHERE xe.name = 'system_health'
92
+
```
93
+
94
+
Inspect the query results for `QUERY_PROCESSING`, `RESOURCE`, and `SYSTEM` components. Look for thread exhaustion, memory pressure, or CPU issues. If you identify any issues resolve them by following the guidance provided in [Troubleshooting SQL Agent Issues](/to-do). <!--Fill in this link one the doc is published -->
87
95
88
96
<!-- Check with SME what the user should do if they identify any thread exhaustion, memory pressure, or CPU issues -->
0 commit comments