昨天监控到的db服务器 的计数器  指标    平均值PhysicalDisk                  % Disk Time 338.523663122769
Processor                   % Processor Time 1.17529985557581
Memory                           Available MBytes 1251.76202531646
PhysicalDisk               Avg. Disk Queue Length 3.38523663122769
SQLServer:Buffer Manager      Buffer cache hit ratio 99.673221677731
Memory                             Pages/sec 199.610740848484
System                     Processor Queue Length 0
SQLServer:General Statistics User Connections 253.020253164557
很疑惑  一般pages/sec 超过 20  就算页交换比较频繁了   一般是内存不足但是监控到的 可用内存  还有1G左右   

解决方案 »

  1.   

    计数器Pages/sec,官方的解释如下.
    其值等于Memory\Pages, Input/sec, Output/sec的总和.Shows the rate at which pages are read from or written to the disk to resolve hard page faults. This counter is a primary indicator of the kinds of faults that cause system-wide delays. It is the sum of Memory\Pages, Input/sec, and Memory\Pages Output/sec. It is counted in number of pages so that it can be compared to other counts of pages, such as Memory\Page Faults/sec, without conversion. It includes pages retrieved to satisfy faults in the file system cache, usually requested by applications, and noncached mapped memory files.
      

  2.   

    我awe锁定内存6g   操作系统用一些内存    还剩下1G 左右内存
      

  3.   

    用dmv语句查询下虚拟内存的情况
      

  4.   

    查询当前实例使用的内存状况,select counter_name, cntr_value*1.0/1024/1024 Memory
    from master.sys.dm_os_performance_counters  
    where counter_name in ('Target Server Memory (KB)','Total Server Memory (KB)')
      

  5.   

    Target Server Memory (KB)                                                                                                        6.00000000000
    Total Server Memory (KB)                                                                                                         6.00000000000
      

  6.   

    请教楼主,
     服务器的物理内存多少? 虚拟内存设置多少?
     Windows是什么版本? 2000/2003/2008? 32位/64位? 企业版/标准版? ...
     SQL Server是什么版本? 2000/2005/2007? 32位/64位? 企业版/标准版? ...
     详细配置的内存方面,做过哪些设置? 修改过系统文件没有?
      

  7.   

    物理内存8G  虚拟内存8G
    windows2003 32位  企业版
    sql server 2005 企业版 32位组策略 账户可以锁定内存
    sql server 启用awe    最大6144mb
    boot.ini 开启/pae
      

  8.   

    确认AWE已启用? exec sp_configure 'awe enabled'貌似少了一步,设定SQL Server动态使用内存.
      

  9.   

    找到原因了:
    备份db导致 写磁盘
    pages/sec停掉db备份之后    pages/sec指标下降到2左右但是 Page Faults/sec   仍然高达 80多