如何进行使用DTU最多的身份查询?

问题描述 投票:0回答:1

我不确定 Azure 上的数据库(这是高级 P2:250 个 DTU)上资源消耗最多的是什么:

最多,使用此查询:

SELECT  
    AVG(avg_cpu_percent) AS 'Average CPU Utilization In Percent', 
    MAX(avg_cpu_percent) AS 'Maximum CPU Utilization In Percent', 
    AVG(avg_data_io_percent) AS 'Average Data IO In Percent', 
    MAX(avg_data_io_percent) AS 'Maximum Data IO In Percent', 
    AVG(avg_log_write_percent) AS 'Average Log Write Utilization In Percent', 
    MAX(avg_log_write_percent) AS 'Maximum Log Write Utilization In Percent', 
    AVG(avg_memory_usage_percent) AS 'Average Memory Usage In Percent', 
    MAX(avg_memory_usage_percent) AS 'Maximum Memory Usage In Percent' 
FROM sys.dm_db_resource_stats; 

但是如果我查看查询性能概览,我没有看到这些问题:

那么,我该怎么做才能了解真正的问题出在哪里呢?这台机器的 DTU 太高了。

sql-server azure optimization resources
1个回答
-2
投票

您可以导航到 Azure 门户中数据库下的查询性能见解:

在这里您可以检查使用大多数 DTU 的所有查询

© www.soinside.com 2019 - 2024. All rights reserved.