如何查看 SQL Server 占用内存

来源:互联网 发布:日本产假多少天 知乎 编辑:程序博客网 时间:2024/05/21 18:03
[sql] view plain copy
 print?在CODE上查看代码片派生到我的代码片
  1. select *,CAST(cntr_value/1024.0 as decimal(20,1)) MemoryMB   
  2. from master.sys.sysperfinfo   
  3. where counter_name='Total Server Memory (KB)'  


2008+

[sql] view plain copy
 print?在CODE上查看代码片派生到我的代码片
  1. SELECT physical_memory_in_use_kb/1024  AS physical_memory_in_use_MB,* FROM sys.dm_os_process_memory  
0 0
原创粉丝点击