skip to Main Content

I got a .net6 service hosted in an AKS cluster with app insight and profiler enabled. Logs appear in app insight and live metrics are working and I can see every action in app insight.

When I click the "Profile now" button in the performance tab, it says a profiling session is in progress and I fire a few requests. Eventually I get a message in app insight of a timeout and no session is added to the list. Why could it happen?

2

Answers


  1. Sadly, Azure profiler just does not support dotnet 6. There might be other solutions for Azure witr this dotnet version

    Login or Signup to reply.
  2. Profiler is supported on the .NET Framework later than version 4.6.2 as mentioned in MSDoc.

    Need to check below:

    1. Check the timeframe when you are using the "Azure Profiler". Because if you try to look at telemetry information or logs that are more than a few months old, you will receive session timeout issues. Sometimes, Traces are removed after seven days.

    2. Moreover, Profiler stops working if there are no records to be displayed. Check that the profiler session is properly enabled. To avoid conflicts, disable and re-enable it.

    3. Check the status of the Application insights profiler with the help of kudu console by visiting to Advanced Tools option in the app service.

      Path: Web App -> Development Tools -> Go to kudu console -> Click on Web Jobs

    enter image description here

    1. Furthermore, if Profiler has a high number of active sessions and an excessive amount of traffic, it may generate these kinds of issues. Profiler can be enabled on at most of four Web Apps operating under the same service plan. Cross check and perform the operations.

    Note: After enabled the profiler, try to send/receive a short amount of data initially. There will be a conflict if you send a huge data in a single attempt at the initial stages.
    If still the issue persists, refer MSDoc for the relevant performance issues of the Profiler sessions.

    I’ve tried the same in my environment by deploying a .NET 6 web app and enabled the profiler session with the application insights of that specific web app. Once I triggered the event, the profiling session prompted with the "profiling completed" message and shown the profile information as below.

    enter image description here

    You can also check whether the profiler is running, by going into Web jobs of the web app blade. Check the logs for the detailed profiling status.

    Path: Goto Web app -> Settings -> WebJobs.

    enter image description here

    Alternatively, Check the web app down status as well as the availability and performance status of the Web app linked to application insights. If the web application has any of the flaws listed above, it will not correctly trace the logs and leads to session time out issues.

    enter image description here

    Login or Signup to reply.
Please signup or login to give your own answer.
Back To Top
Search