use master exec sp_configure 'show advanced options', 1 reconfigure with OVERRIDE -- 先设置物理内存上限到一个比较低的值,但也不要太低 exec sp_configure 'max server memory (MB)', 10240 reconfigure with OVERRIDE -- 等待Sql server释放 waitfor Delay '00:02:00' -- 还原原先的内存上限 exec sp_configure 'max server memory (MB)', 40496 reconfigure with OVERRIDE exec sp_configure 'show advanced options', 0 reconfigure with OVERRIDE


思路很简单就是动态的设置sql server的最多可用内存.

相关文章:

  • 2021-12-06
  • 2021-12-31
猜你喜欢
  • 2022-01-14
  • 2022-12-23
  • 2021-07-09
  • 2021-06-07
  • 2021-12-06
相关资源
相似解决方案