USE AdventureWorks2012 ;

GO

EXEC sp_configure 'show advanced options', 1;

GO

RECONFIGURE ;

GO

EXEC sp_configure 'max worker threads', 900 ;

GO

RECONFIGURE;

GO

若提示

配置选项 'max worker threads' 不存在,也可能是高级选项。则需要执行show advanced options.

若提示 不支持对系统目录进行即席更新。 则需要在reconfigure 后面 增加 with override.如果修改后的最大工作线程数小于之前最大工作线程数 则需要重启服务.

查看系统支持最大线程数和当前工作线程数
select max_workers_count from sys.dm_os_sys_info
select count (*) from sys. dm_os_workers

 

 

相关文章:

  • 2021-12-31
  • 2022-12-23
  • 2022-12-23
  • 2021-08-12
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-08-05
  • 2022-01-24
  • 2021-05-21
相关资源
相似解决方案