10
votes

Hello I have recently deployed one of my application on azure portal and it is running fine as well but the issue it takes 15 SECONDS TO LOAD for the first time when site load.

After site load successfully once than it runs fine but as I open after some interval time of 10 min or 20 min again it takes 15 SECONDS TO LOAD.

I have read all the documents and applied the same below.

Performance tips

Traffic Manager Routine

Azure Advisor

Application Insights

Azure Site Performance

SOF Question

Azure Resource Health

Scheduler

I have set Scheduler to call my application on 10 minutes of interval time but it is having the same issue as it was.

The one issue I found is that, it is taking time to locate the server and than give the response so is there any routing mechanism I can provide in azure to locate the server faster? or anything else.

2
Which tier is it running on?juunas
First load issue is most likely IIS load time, which can be made faster by using Deployment Slots + Application Initialization (set up warm-up routes in web.config).juunas
@juunas My application is running on (Basic: 1 Small) tier.3 rules

2 Answers

3
votes

Did you turn On the Always On knob in Application Settings? —

https://docs.microsoft.com/en-us/azure/app-service/web-sites-configure#general-settings

Always On

By default, web apps are unloaded if they are idle for some period of time. This lets the system conserve resources. In Basic or Standard mode, you can enable Always On to keep the app loaded all the time. If your app runs continuous WebJobs or runs WebJobs triggered using a CRON expression, you should enable Always On, or the web jobs may not run reliably.

0
votes

Check the Application Insight configuration in your App Service slot , if you have this activated, it may be affecting the TTFB time (Time to first byte)

It can be an diagnostics listener configured in your Web.config: https://medium.com/@prageeth/slow-loading-azure-web-app-e7f6449139cf

In case you have the XDT_MicrosoftApplicationInsights_Mode configuration key, simply change the configuration from recommended to default