CPU utilization by database?

前端 未结 8 1184
情话喂你
情话喂你 2020-12-04 08:21

Is it possible to get a breakdown of CPU utilization by database?

I\'m ideally looking for a Task Manager type interface for SQL server, but instead

8条回答
  •  误落风尘
    2020-12-04 08:46

    SQL Server (starting with 2000) will install performance counters (viewable from Performance Monitor or Perfmon).

    One of the counter categories (from a SQL Server 2005 install is:) - SQLServer:Databases

    With one instance for each database. The counters available however do not provide a CPU % Utilization counter or something similar, although there are some rate counters, that you could use to get a good estimate of CPU. Example would be, if you have 2 databases, and the rate measured is 20 transactions/sec on database A and 80 trans/sec on database B --- then you would know that A contributes roughly to 20% of the total CPU, and B contributes to other 80%.

    There are some flaws here, as that's assuming all the work being done is CPU bound, which of course with databases it's not. But that would be a start I believe.

提交回复
热议问题