Search code examples
azureazure-sql-databasecpu-usage

Cpu utilisation of azure SQL database is showing zero


I have moved a azure SQL database from one subscription to another. After moving the database the cpu utilisation is showing zero . Cpu may have been dead. Please help me to fix the issue. screenshot attached


Solution

  • Try using the below DMV ( in SSMS /Query Editor) :

    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 I/O Throughput Utilization In Percent',   
        MAX(avg_log_write_percent) AS 'Maximum Log Write I/O Throughput 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;
    

    I was able to see 76 percent cpu utilization using this query, still it's not showing on portal and Microsoft internal team is looking into it but at least I was able to see that cpu is not dead and it is responding.

    screenshot of result