How do I know if SQL is causing an issue with my application performance?

Corbin Bethurem 61 Reputation points Microsoft Employee
2021-03-29T16:50:32.873+00:00

I have an Azure Web App that has been performing quite slow lately. My code has a few dependencies, and I am thinking that one of these such as SQL may be the cause for performance degradation. Is there any way from the Web App that I can confirm if one of these dependencies may be causing the issue?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,908 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 25,981 Reputation points Microsoft Employee
    2021-03-29T18:44:21.887+00:00

    If you have an application experiencing slow performance, one way to approach scoping this would be to use the Diagnose and solve problems blade in Portal (pictured below).

    82513-image.png

    Here we can type into the search box “Web App Slow” which will list out your Top 5 Slowest Dependency Executions. When SQL may be an issue, the name field will have the word “database” within it.

    82458-image.png

    Once this is seen, we can navigate to the SQL database and start looking at areas such as resource consumption (CPU, Memory), as well as seeing if we can optimize queries.

    More verbose logging options such as Memory Dumps or .NET Profiler Traces which can be collected through Auto-Heal rules / manually can also lead to narrowing the issue down to SQL. These can be configured by navigating again to Diagnose and solve Problems -> Diagnostic Tools.

    82475-image.png

    However, the initial recommendation of using the “Web App Slow” detector would be the quickest way to scope the issue, only using verbose logging as needed.

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful