SQL Server最大内存设置

时间:2017-01-04 05:06:18

标签: sql-server-2008-r2

物理内存为32GB

SQL Server 2008 R2最大内存设置为29000(MB)。

当我检查任务管理器sqlservr.exe使用29GB时。

我不确定为什么?

1 个答案:

答案 0 :(得分:1)

你不应该使用任务管理器来查看SQLServer的内存使用情况。

TaskManager不报告AWE(对于32位sql server)和锁定页面(对于64位sql server)使用的内存..

要查看确切的内存使用情况,请使用..

select * from sys.dm_os_process_memory 

select * from sys.dm_os_performance_counters where counter_name like 'total%memory%'

参考文献和进一步阅读:
https://dba.stackexchange.com/questions/35418/why-is-sql-server-memory-showing-in-task-manager
http://sqlblog.com/blogs/jonathan_kehayias/archive/2009/08/24/troubleshooting-the-sql-server-memory-leak-or-understanding-sql-server-memory-usage.aspx