物理内存为32GB
。
SQL Server 2008 R2最大内存设置为29000(MB)。
当我检查任务管理器sqlservr.exe
使用29GB
时。
我不确定为什么?
答案 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