添加监视时,可能会出现如下错误:
@(}/k~h'E^ E0Monitor name :MS SQL Server. Cannot create measurement SQLServer|User Connections| on machine 127.0.0.1.51Testing软件测试网N"s-NJ&[+m(S&FC51Testing软件测试网[!\U'q&g"eOk-M
Details:在计算机上找不到指定的对象。51Testing软件测试网o*Ui cE@)O7sJ51Testing软件测试网-z#A(z hhR
,[~P+jp't$v.|051Testing软件测试网R)uCgE@r
Hint:51Testing软件测试网*Xm%f|P)L0pS51Testing软件测试网]-x
g4n!h
Check that there is such a measurement on this machine.6~wz#o([Bf0
^p3y/M%]w-O0Check that you selected the right platform. for the monitored machine in the Add Machine dialog box.51Testing软件测试网/er.\,V)dd(\ @
4vx~*\R5r{!w4x%M0Note: When you monitor a Win2000 machine from an NT, some counters may not be available.,l4h;VKK;Nn"DT051Testing软件测试网}d.YN6x+ot(C(b
Try to delete this measurement and add it again (use the Add Resources dialog box ) (entry point: CFactory::Addmeasurement ). [MsgId: MMSG-47296].t~6VHR*z3j2m0
_N ob4O@1@'x[k/Fq051Testing软件测试网!`U2gH4r(v!q6h4o51Testing软件测试网nW0~Np_8t
监控SQLSERVER时,能增加度量。但是只有系统资源相关的度量有数据,而和sqlserver相关的度量却没有数据,此时你可能会怀疑,是不是的连接配置有问题,但你在开始-程序菜单中,手工打开SQL SERVER软件时,是可以连接并登录的,说明SQL SERVER连接配置是没有问题的。QW?#t;fL3T0
W;u4Ir^:l"z?0lCM!b~R.g0
AN;LtSn051Testing软件测试网D+a M?"S9F7KV+H;D
+tb(F:R"@Q0可能的解决方法::S)l+{M+dR#h0
}1X d$t;oUQ$Zb0改为在System Resource Graphs中通过像添加Resources一样的方式手工添加SQLServer计数器则可以添加成功,添加的对象是SQLServer:General Statistics.X!\pxKL|0
一般来说,应该收集哪些SQLServer的性能指标?51Testing软件测试网,VAa*kF
一般需要监控以下指标:51Testing软件测试网L3Vd}-HRY:p$l
]T?v'D"l01)SQLServer资源监控中指标缓存点击率(Cache Hit Ratio),该值越高越好。如果持续低于80%,应考虑增加内存。51Testing软件测试网0_5h
u1r I1^:e3d
5ea+K-tmgb-TO02)如果Full Scans/sec(全表扫描/秒)计数器显示的值比1或2高,则应分析你的查询以确定是否确实需要全表扫描,以及SQL查询是否可以被优化。F9YFJIc+YY051Testing软件测试网d|&Y#pc-ye|jU
3)Number of Deadlocks/sec(死锁的数量/秒):死锁对应用程序的可伸缩性非常有害,并且会导致恶劣的用户体验。该计数器的值必须为0。51Testing软件测试网y;^6RI"EJV.WQ
0IU5Lcm[04)Lock Requests/sec(锁请求/秒),通过优化查询来减少读取次数,可以减少该计数器的值。51Testing软件测试网Ba`1` ~%YdY