SQL SERVER AGNET作业达到上限

本文探讨了在SQL Server 2008 R2中,如何解决SQL Agent日志显示的错误信息,以及如何调整max_worker_threads参数以适应单核虚拟机环境。通过修改注册表并重启SQL Agent服务,实现了对并发作业数量的有效控制。
版本是SQL SERVER2008R2, SQL AGENT日志里的错误如下


Date 8/7/2014 8:39:24 AM

Log SQL Server Agent (Current - 8/7/2014 8:43:00 AM)

Message
[398] The job (Distribution clean up: distribution) has been queued because the maximum number of working threads (100) are already running.  This job will be executed as soon as one of the working thread finishes execution.

我已经更新了表msdb.dbo.syssubsystems的max_worker_threads的值,连服务器都重启过了

但是显然并没有应用这个更改后的值,SQL AGENT依然使用的是100这个默认值。


最后google找到解决方案,参考网址http://mssqlwiki.com/sqlwiki/sql-server-agent/sql-agent-maxworkerthreads-and-agent-subsystem/

这个问题的原因是SQL AGENT的max worker thread的默认值是CPU*100,我的虚拟机只有1个CPU,所以最多只能同时运行100个作业。

syssubsystems里面是某种代理可以运行的最多线程数,直接点说可以理解成某种代理作业数,例如复制分发代理,或者cmdexec代理。这个系统表里的值应该也和cpu数量有关,但是可以自行更改。

修改SQL AGENT的max worker thread的默认值,需要通过修改注册表
我测试的服务器是WIN SERVER208R2
KEY_LOCAL_MACHINE->SOFTWARE->Microsoft->Microsoft SQL Server->MSSQL版本号.实例名->SQLServerAgent
在这个目录下增加一个DWORD键值,名字是MaxWorkerThreads,键值是16进制的,可以根据你的需求更改。
重启SQL AGENT然后就OK了


### YTM32 IIC (I²C) Programming Tutorial #### Overview of I²C Configuration on YTM32B1MC0 The configuration and use of the Inter-Integrated Circuit (I²C) protocol with the YTM32B1MC0 microcontroller involve setting up specific registers to enable communication between devices over two wires: SDA (Serial Data Line) and SCL (Serial Clock Line). The setup process includes configuring clock speeds, enabling interrupts if necessary, and handling start/stop conditions as well as read/write operations. For initializing an I²C interface on a YTM32 device like the B1 series, one should refer closely to the provided demo examples which serve both demonstration purposes and detailed explanations about how each part works together[^1]. #### Key Points in Setting Up I²C Communication To establish proper I²C communication using YTM32 chips: - **Initialization**: Initialize the I²C peripheral by specifying parameters such as speed mode (standard/fast), address format, own slave address when acting as master/slave. - **Clock Control**: Adjust prescalers within the I²C module according to desired bit rates while ensuring stability under varying power supply voltages. - **Interrupt Handling**: Implement interrupt service routines that can handle events during data transfer including ACKnowledge failures, bus errors, etc., thus maintaining robustness against potential issues arising from hardware bugs similar to those reported for STM32's implementation[^2]. Here is a simplified example demonstrating initialization steps written in C language targeting GCC compiler toolchain commonly used alongside ARM Cortex-M cores found inside these MCUs: ```c #include "ytm32fxxx_hal.h" // Assume `hi2c` has been declared globally somewhere earlier... void MX_I2C_Init(I2C_HandleTypeDef* hi2c){ /* USER CODE BEGIN I2C_Init 0 */ /* USER CODE END I2C_Init 0 */ // Configure I2C settings here... } ``` This code snippet provides only placeholders where actual configurations would take place based upon application requirements. For more comprehensive guidance tailored specifically towards cloud chip products manufactured by YunTu Semiconductor Co Ltd, consulting their official reference manuals becomes essential since they contain precise instructions regarding register mappings along with other critical details pertinent to successful integration into projects involving serial communications protocols like UARTs too[^3]. #### Additional Resources Beyond direct coding practices, understanding underlying principles behind boot processes also plays a significant role especially concerning security aspects related to firmware updates via bootloader mechanisms present even at lower levels affecting higher-level functionalities indirectly through system-wide resets triggered post-update activities[^4]. Moreover, executing commands directly onto flash memory controllers could impact overall performance metrics associated with swapping out executable images stored across different regions depending upon design choices made prior to deployment phases[^5].
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值