日期:2014-05-17 浏览次数:20691 次
SELECT @@VERSION
SELECT *,cntr_value*1.0/1024/1024 as Memory_GB
FROM sys.dm_os_performance_counters
WHERE ([OBJECT_NAME] like '%Memory Manager%') and
counter_name in( 'Target Server Memory (KB)','Total Server Memory (KB)')
SELECT
SUM(single_pages_kb)*1.0/1024 as total_single_pages_MB,
SUM(multi_pages_kb)*1.0/1024 as total_multi_pages_MB,
SUM(virtual_memory_reserved_kb)*1.0/1024 as total_virtual_memory_reserved_MB,
SUM(virtual_memory_committed_kb)*1.0/1024 as total_virtual_memory_committed_MB,
SUM(awe_allocated_kb)*1.0/1024 as total_awe_allocated_MB,
SUM(shared_memory_reserved_kb)*1.0/1024 as total_shared_memory_reserved_MB,
SUM(shared_memory_committed_kb)*1.0/1024 as total_shared_memory_committed_MB
FROM sys.dm_os_memory_clerks