Welcome to Microsoft Q&A! This is good question, thanks for posting here with a detailed description of the problem. It’s highly appreciated.
Apologies for the delayed response here. I completely understand the frustration with the WebApp performance issue.
Kindly take a look at the suggestions mentioned below, that we could try, if those doesn’t help I wish to engage with you offline for a much closer look and provide a quick and specialized assistance, please send an email with subject line “Attn:Ajay” to AzCommunity[at]Microsoft[dot]com referencing this thread, Azure subscription ID, I will follow-up with you.
Apologies for the long answer – I’m sharing all the possible options that we could try to benefit the community.
Having mentioned that, there could several cause for slow performance, in the interim, you may try these options to isolate the issue
(I understand you have tried several things already, if you have haven’t done any of the following, requesting you to review and try:
- Firstly for a quick review, kindly check to see if App Service diagnostics provides any pointers, it reduces the chance of trial and error and expedites problem resolution by recommending potential solutions.
To access App Service diagnostics, navigate to your App Service app in the Azure portal. In the left navigation, click on Diagnose and solve problems – Checkout the tile for “Diagnostic Tools” and “Availability and Performance”. - If you haven’t done this already so, you may enable Always On to keep the app loaded all the time. From the Azure Portal> Navigate to your WebApp > Under Settings blade > Go to “Configuration” > Enable “Always on” feature under ‘Platform settings’.
- You can configure the amount of time the platform will wait before it restarts your container. To do so, set the WEBSITES_CONTAINER_START_TIME_LIMIT app setting to the value you want. The default value is 230 seconds, and the maximum value is 1800 seconds.
To do this, from the Azure Portal> Navigate to your WebApp > Under Settings blade > Go to “Configuration” >
Add the above app setting with ‘Name’ with 1800 as ‘Value’ .