|
1 | 1 | --- |
2 | 2 | title: "sys.dm_db_resource_stats (Azure SQL Database) | Microsoft Docs" |
3 | 3 | ms.custom: "" |
4 | | -ms.date: "05/21/2019" |
| 4 | +ms.date: "02/27/2020" |
5 | 5 | ms.service: sql-database |
6 | 6 | ms.reviewer: "" |
7 | 7 | ms.topic: "language-reference" |
@@ -37,22 +37,22 @@ monikerRange: "= azuresqldb-current || = sqlallproducts-allversions" |
37 | 37 | |max_session_percent|**decimal (5,2)**|Maximum concurrent sessions in percentage of the limit of the database's service tier.| |
38 | 38 | |dtu_limit|**int**|Current max database DTU setting for this database during this interval. For databases using the vCore-based model, this column is NULL.| |
39 | 39 | |cpu_limit|**decimal (5,2)**|Number of vCores for this database during this interval. For databases using the DTU-based model, this column is NULL.| |
40 | | -|avg_instance_cpu_percent|**decimal (5,2)**|Average database CPU usage as a percentage of the SQL DB process.| |
41 | | -|avg_instance_memory_percent|**decimal (5,2)**|Average database memory usage as a percentage of the SQL DB process.| |
| 40 | +|avg_instance_cpu_percent|**decimal (5,2)**|Average CPU usage for the SQL Server instance hosting the database, as measured by the operating system. Includes CPU utilization by both user and internal workloads.| |
| 41 | +|avg_instance_memory_percent|**decimal (5,2)**|Average memory usage for the SQL Server instance hosting the database, as measured by the operating system. Includes memory utilization by both user and internal workloads.| |
42 | 42 | |avg_login_rate_percent|**decimal (5,2)**|Identified for informational purposes only. Not supported. Future compatibility is not guaranteed.| |
43 | 43 | |replica_role|**int**|Represents the current replica’s role with 0 as primary, 1 as secondary, and 2 as forwarder (geo-secondary’s primary). You will see “1” when connected with ReadOnly intent to all readable secondaries. If connecting to a geo-secondary without specifying ReadOnly intent, you should see “2” (connecting to the forwarder).| |
44 | 44 | ||| |
45 | 45 |
|
46 | 46 | > [!TIP] |
47 | | -> For more context about these limits and service tiers, see the topics [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/) and [Service tier capabilities and limits](https://azure.microsoft.com/documentation/articles/sql-database-performance-guidance/). |
| 47 | +> For more context about these limits and service tiers, see the topics [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/), [Manually tune query performance in Azure SQL Database](https://azure.microsoft.com/documentation/articles/sql-database-performance-guidance/), and [SQL Database resource limits and resource governance](https://docs.microsoft.com/azure/sql-database/sql-database-resource-limits-database-server). |
48 | 48 | |
49 | | -## Permissions |
| 49 | +## Permissions |
50 | 50 | This view requires VIEW DATABASE STATE permission. |
51 | 51 |
|
52 | | -## Remarks |
| 52 | +## Remarks |
53 | 53 | The data returned by **sys.dm_db_resource_stats** is expressed as a percentage of the maximum allowed limits for the service tier/performance level that you are running. |
54 | 54 |
|
55 | | - If the database was failed over to another server within the last 60 minutes, the view will only return data for the time it has been the primary database since that failover. |
| 55 | + If the database was failed over to another server within the last 60 minutes, the view will only return data for the time since that failover. |
56 | 56 |
|
57 | 57 | For a less granular view of this data with longer retention period, use **sys.resource_stats** catalog view in the **master** database. This view captures data every 5 minutes and maintains historical data for 14 days. For more information, see [sys.resource_stats (Azure SQL Database)](../../relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database.md). |
58 | 58 |
|
@@ -95,8 +95,5 @@ FROM sys.dm_db_resource_stats; |
95 | 95 | ``` |
96 | 96 |
|
97 | 97 | ## See Also |
98 | | - [sys.resource_stats (Azure SQL Database)](../../relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database.md) |
99 | | - [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/) |
100 | | - [Service tier capabilities and limits](https://azure.microsoft.com/documentation/articles/sql-database-performance-guidance/) |
101 | | - |
102 | | - |
| 98 | + [sys.resource_stats (Azure SQL Database)](../../relational-databases/system-catalog-views/sys-resource-stats-azure-sql-database.md) |
| 99 | + [Service Tiers](https://azure.microsoft.com/documentation/articles/sql-database-service-tiers/) |
0 commit comments