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
+26-26Lines changed: 26 additions & 26 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -27,42 +27,42 @@ Logon to server '<ServerName>' failed (ConnLogJobHistory)
27
27
28
28
This issue can be caused by any of the following underlying problems:
29
29
30
-
- Blocking on [msdb](/sql/relational-databases/databases/msdb-database) system tables used by Agent, which prevents job metadata reads and writes.
31
-
- Example system tables:`dbo.sysjobs`, `dbo.sysjobschedulers`, and `dbo.jobsteps`.
30
+
- Blocking on [msdb](/sql/relational-databases/databases/msdb-database) system tables that SQL Agent uses. This blocking prevents job metadata reads and writes.
31
+
- Example system tables include`dbo.sysjobs`, `dbo.sysjobschedulers`, and `dbo.jobsteps`.
32
32
- Hangs inside important SQL Server Agent threads or other process-level problems.
33
-
- Worker thread exhaustion in SQL Server (no workers available), making the Agent unable to connect or process schedules.
33
+
- Worker thread exhaustion in SQL Server (no workers available). This exhaustion makes the Agent unable to connect or process schedules.
34
34
35
35
## Solution
36
36
37
37
1. Confirm that the SQL Server Agent service is running by using one of the following PowerShell commands:
38
38
39
-
1. For default SQL instances:
39
+
* For default SQL instances:
40
40
41
41
```powershell
42
42
Get-Service -Name "SQLSERVERAGENT"
43
43
```
44
44
45
-
1. For named SQL instances:
45
+
* For named SQL instances:
46
46
47
47
```powershell
48
48
Get-Service -Name "SQLSERVERAGENT$<InstanceName>"
49
49
```
50
50
51
51
1. If the SQL Server Agent service isn't running, start it by using one of the following commands:
1. If jobs continue to fail after starting the SQL Server Agent service, continue to the next step. If jobs are completing successfully, the issue is resolved and no further action is needed.
65
+
1. If jobs continue to fail after starting the SQL Server Agent service, continue to the next step. If jobs are completing successfully, the problem is resolved and no further action is needed.
66
66
1. Check the jobs and schedules in `msdb` by opening [SQL Server Management Studio (SSMS)](/ssms/install/install) and running the following query:
67
67
68
68
```tsql
@@ -87,7 +87,7 @@ This issue can be caused by any of the following underlying problems:
87
87
GO
88
88
```
89
89
90
-
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.
90
+
Analyze the query output for any jobs that are enabled but failed. Investigate the job history and job-step outputs for any problematic jobs to identify and fix underlying problems.
91
91
92
92
1. Detect blocking sessions on `msdb` Agent system tables by running the following query in SSMS:
93
93
@@ -107,7 +107,7 @@ This issue can be caused by any of the following underlying problems:
107
107
GO
108
108
```
109
109
110
-
1. To identify the query associated with a blocking session run the following query in SSMS:
110
+
* To identify the query associated with a blocking session run the following query in SSMS:
111
111
112
112
```tsql
113
113
SELECT
@@ -138,7 +138,7 @@ This issue can be caused by any of the following underlying problems:
138
138
139
139
Once all blocking sessions are resolved or terminated, proceed to the next step.
140
140
141
-
1. Check for any worker, thread, or resource health issues by running the following query in SSMS:
141
+
1. Check for any worker, thread, or resource health problems by running the following query in SSMS:
@@ -207,36 +207,36 @@ This issue can be caused by any of the following underlying problems:
207
207
ORDER BY Section, Metric;
208
208
```
209
209
210
-
Investigate the output of the health check query for any of the following issues using the given symptoms:
211
-
212
-
1. Worker thread pressure:
213
-
1. Worker exhaustion, for example `Workers: 512/512`.
214
-
1. `WorkQueue` is greater than zero, indicating that tasks are waiting and the system is overloaded.
215
-
1. CPU pressure:
216
-
1. `RunnableTasks` is greater than zero, indicating there is a CPU bottleneck.
217
-
1. Memory pressure:
218
-
1. `Memory state` is `LOW`, indicating the overall system is low on memory.
219
-
1. A low value for `AvailableMB`, indicating high memory usage for SQL Server.
220
-
1. A `PLE` value less than 300, indicating high memory churn.
221
-
1. If you identified any worker, CPU, or memory issues in the previous step reduce your current workload to resolve them. If no worker, CPU, or memory issues were identified, proceed to the next step.
210
+
Investigate the output of the health check query for any of the following problems using the given symptoms:
211
+
212
+
* Worker thread pressure:
213
+
* Worker exhaustion, for example `Workers: 512/512`.
214
+
* `WorkQueue` is greater than zero, indicating that tasks are waiting and the system is overloaded.
215
+
* CPU pressure:
216
+
* `RunnableTasks` is greater than zero, indicating there's a CPU bottleneck.
217
+
* Memory pressure:
218
+
* `Memory state` is `LOW`, indicating the overall system is low on memory.
219
+
* A low value for `AvailableMB`, indicating high memory usage for SQL Server.
220
+
* A `PLE` value less than 300, indicating high memory churn.
221
+
1. If you identified any worker, CPU, or memory problems in the previous step, reduce your current workload to resolve them. If you didn't identify any worker, CPU, or memory problems, proceed to the next step.
222
222
1. Restart the SQL Server Agent by running one of the the following PowerShell commands:
223
223
224
224
> [!IMPORTANT]
225
225
> Restarting the SQL Server Agent interrupts any currently running jobs.
226
226
227
-
1. For default SQL instances:
227
+
* For default SQL instances:
228
228
229
229
```powershell
230
230
Restart-Service -Name "SQLSERVERAGENT"
231
231
```
232
232
233
-
1. For named SQL instances:
233
+
* For named SQL instances:
234
234
235
235
```powershell
236
236
Restart-Service -Name "SQLAgent$<InstanceName>"
237
237
```
238
238
239
-
1. After the SQL Server Agent restarts, verify that jobs are now being executed by using the [Job Activity Monitor](/ssms/agent/monitor-job-activity#job-activity-monitor).
239
+
1. After SQL Server Agent restarts, verify that jobs are now running by using the [Job Activity Monitor](/ssms/agent/monitor-job-activity#job-activity-monitor).
0 commit comments