红俊's profile蝈蝈俊的共享空间PhotosBlogListsMore Tools Help

Blog


    November 24

    SQL Server Profiler 看到的几个指标说明

    SQL Server Profiler 看到的几个指标说明,如下图:

    以上图的选择的第5行 Audit Logout 为例,

    Read 是指刚被关闭的连接,从开始连接到关闭连接,逻辑读取页面 的数量总合。

    CPU 是指刚被关闭的连接,从开始连接到关闭使用的 CPU 时间(毫秒)。

    Writes 是指刚被关闭的连接,从开始连接到关闭连接,逻辑写入页面 的数量总和。

    Duration 是指刚被关闭的连接存活了多长时间,而不是“关闭连接”这个操作消耗了多长时间。

     

    所以很多时候看到有人问 MSSQL中事件探察器出现大量audit login / audit logout 占用大量资源。

    实际不是 audit login / audit logout这两个过程占资源,而是这次连接占了资源。

     

     

    参考资料:

    Audit Logout 事件类
    http://msdn.microsoft.com/zh-cn/library/ms175827.aspx

    Audit Login 事件类
    http://msdn.microsoft.com/zh-cn/library/ms190260.aspx

    Audit login 与 Audit logout
    http://www.cnblogs.com/zhuweisky/archive/2008/10/28/1321155.html