![]() | |
![]() |
| | Thread Tools | Display Modes |
#11
| |||
| |||
|
|
Excellent! Just a comment on your comments on the performance impact of the tool itself. What I found is that if you can get to the server in time to collect data when the problem is already there, you are probably okay to do all these joins on the DMVs. But often (1) you don't know when a performance problem may appear and (2) when it occurs, it may disappear before you get there, so you may have to collect data continuously or at a fairly high frequency (say once every few seconds). In that case, a monitoring tool that does heavy joins every time it collects perf data can easily become a top load contributor, kind of defeating the purpose. |
#12
| |||
| |||
|
|
If you have issues like you describe where things clog up for 10 seconds, you are better off with a trace. |
|
Linchi Shea (LinchiShea (AT) discussions (DOT) microsoft.com) writes: Excellent! Just a comment on your comments on the performance impact of the tool itself. What I found is that if you can get to the server in time to collect data when the problem is already there, you are probably okay to do all these joins on the DMVs. But often (1) you don't know when a performance problem may appear and (2) when it occurs, it may disappear before you get there, so you may have to collect data continuously or at a fairly high frequency (say once every few seconds). In that case, a monitoring tool that does heavy joins every time it collects perf data can easily become a top load contributor, kind of defeating the purpose. Agreed. Beta_lockinfo is nothing you should run every ten seconds or so. It is not intended to be a proactive monitoring tool, but one you use when you have trouble. If you have issues like you describe where things clog up for 10 seconds, you are better off with a trace. As for the DMV joins, my experience is that the most expensive part is accessing sys.dm_tran_locks. There is a GROUP BY, but it is really the DMV itself which is slow. -- Erland Sommarskog, SQL Server MVP, esquel (AT) sommarskog (DOT) se Links for SQL Server Books Online: SQL 2008: http://msdn.microsoft.com/en-us/sqlserver/cc514207.aspx SQL 2005: http://msdn.microsoft.com/en-us/sqlserver/bb895970.aspx SQL 2000: http://www.microsoft.com/sql/prodinf...ons/books.mspx |
![]() |
| Thread Tools | |
| Display Modes | |
| |