Slow website on Azure

Jassim Al Rahma 1,616 Reputation points
2023-12-28T10:46:05.9333333+00:00

Hi,

I have this website on Azure:

https://www.muffin.ph/

but when the user sign up and search, the website is too slow.

I am using SQL Server but when I go to the SQL database on Azure I don't see any performance issue

I even upgraded to Premium but still had the same slow performance,

The same website is also available in multiple domains including http://www.muffin.ae/ and all of them having the same problem.

How can I improve it?

Thanks,

Jassim

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,964 questions
SQL Server | Other
{count} votes

2 answers

Sort by: Most helpful
  1. Andriy Bilous 11,821 Reputation points MVP Volunteer Moderator
    2023-12-29T05:43:36.0266667+00:00

    Hello @Jassim Al Rahma

    I would recommend to enable monitoring on your web applications running on Azure App Service by integrating Application Insights.

    Create a App Insight service in Azure.
    When you go on your app service, you have an instrumentation key, you need to set this instrumentation key in you app service config (actually, is empty in your screen. The first line) and / or set this key in your code (in appsettings file if you have a standard app, directly in your telemetry service if you use workers).
    alt text

    https://learn.microsoft.com/en-us/azure/azure-monitor/app/azure-web-apps-net-core?tabs=Windows%2Cwindows
    https://learn.microsoft.com/en-us/answers/questions/4170/enable-application-insights-in-appservice


  2. SnehaAgrawal-MSFT 22,706 Reputation points Moderator
    2024-01-03T14:16:38.28+00:00

    @Jassim Al Rahma To add to further- You may also go diagnose and solve problems blade of your web app from Azure Portal > Availability and performance > Web App slow.

    User's image

    Looking at site there seems a Zombie process detected-

    -Zombie process or defunct process is one which has completed execution but still exists in system process table. i.e, the parent process has not yet read the child processes exit status.

    Zombie processes can either be detected by looking at top or ps output.

    Recommendations

    1. SSH into your app container by going to https://sitename.scm.azurewebsites.net.
    2. Use ps to check for any <defunct> processes. Sample below. User's image
    3. Then use top to show any processes in a 'Z' state. Sample below (press 'o' and filter using 'S=Z')

    User's image

    1. Once the process is identified, try restarting the process or consider restarting your site.

    Please let us know if issue remains, or further query.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.