SQLAGENT job waiting on worker thread (306457)
The information in this article applies to:
- Microsoft SQL Server 2000 Standard Edition
- Microsoft SQL Server 2000 Enterprise Edition
- Microsoft SQL Server 2000 Developer Edition
- Microsoft SQL Server 2000 Personal Edition
- Microsoft SQL Server 7.0
This article was previously published under Q306457 SYMPTOMS If a scheduled SQLAgent job does not start or complete on
time, check for the last run status. If the job status is Waiting on Worker Thread, then check the SQLAgent log for this error message:
[251] Step %ld of job %s is being queued for the %s
subsystem By default, the SQLAgent log (Sqlagent.out file) is
located in the \Log folder of the SQL Server installation. CAUSE The number of concurrent jobs has reached the max_worker_thread setting for that subsystem of SQLAGENT. RESOLUTIONImportant This article contains information about how to modify the registry. Make sure to back up the registry before you modify it. Make sure that you know how to restore the registry if a problem occurs. For more information about how to back up, restore, and modify the registry, click the following article number to view the article in the Microsoft Knowledge Base: 256986 Description of the Microsoft Windows registry Warning Serious problems might occur if you modify the registry incorrectly by using Registry Editor or by using another method. These problems might require that you reinstall your operating system. Microsoft cannot guarantee that these problems can be solved. Modify the registry at your own risk. The max_worker_thread setting is stored in the registry. If you have a default
instance, this setting is stored under the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\MSSQLServer\SQLServerAgent\Subsystems If you have a named instance, this setting is stored
under the following key: HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Microsoft SQL Server\{YourInstanceName}\SQLServerAgent\Subsystems\LogReader
The very last part of each key value is a number
that specifies the max_work_thread setting for that specific subsystem. In the following example,
the LogReader subsystem has a maximum of 25: LogReader:REG_SZ:C:\Mssql7\Binn\Sqlrepss.dll,C:\Mssql7\Binn\Logread.exe,ReplStart,ReplEvent,ReplStop,25 Increasing the number allows for more concurrent
worker threads under that specific subsystem. NOTE: The Transact-SQL subsystem key is not created by default. To
modify the Transact-SQL subsystem key, add a value of Transact-SQL with the
datatype REG_SZ. In the string, add only a number such as 40 or 100. This
number represents the new max_worker_thread setting for the Transact-SQL subsystem. For example: STATUS This behavior is by design.
Modification Type: | Major | Last Reviewed: | 5/3/2006 |
---|
Keywords: | kbprb KB306457 |
---|
|