2017-01-04 108 views
0

物理内存为32GBSQL Server最大内存设置

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

当我检查任务管理器sqlservr.exe用途超过29GB

我不知道为什么?

+0

是什么查询说''sys.dm_os_process_memory – TheGameiswar

回答

0

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

任务管理器不报告通过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