Changes in App Services Infrastructure

Jim Miller 21 Reputation points
2021-02-10T20:29:50.45+00:00

Has something changed in the App Service Infrastrcuture?

I can be barely keep 4 App Services up for 24 hours. We used to have 8 up until 3-4 weeks ago, and never really had any issues with memory, resources or anything else, We got rid of 3 or 4 of those. There are 2 .net core 3.1 apps, one is a web api, and another is a front end. Dev and prod for each.

We are still in beta mode so we go many hours with zero activity and sites will just stop responding in the middle of the day, and now we get frequent 500.37 startup timeouts.

We have made app changes recently to adopt DI for HTTPCLient and database access, all have improved memory consumption locally. I can't get any of the apps to go above 150M in Visual studio locally. There are extremely erratic memory consumption in the Azure apps, spiking and droppng for no apparent reason.

Maybe we are doing something fundamentally wrong, the webapi app has not changed at all in months, but experiences many of the same issues. The dev app and prod app often times have very different memory consumption statistics. I've reviewed pretty much everything I can find, it appears we are doing everything correctly.

We are on S1 app service plan, and Azure keeps telling us we should scale up, but I'm unsure why that would be the answer, we are well within the resource consumption for that plan.

If anyone has any thoughts on what we can try, happy to share more about our configuration and app.

Thanks,
Jim

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,526 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,679 questions
0 comments No comments
{count} votes

Accepted answer
  1. Ryan Hill 28,091 Reputation points Microsoft Employee
    2021-02-16T16:49:14.877+00:00

    Hi @Jim Miller ,

    Troubleshooting performance degradation provides some details on how to enable certain diagnostic logging to better understand why your app is encountering startup issues. ANCM could be timing out because Program.Main() through Startup.Configure() is taking longer than 120 seconds. You can configure the startup time via <aspNetCore> in your web.config, see https://learn.microsoft.com/en-us/aspnet/core/host-and-deploy/aspnet-core-module?view=aspnetcore-3.1#configuration-with-webconfig but you should look at why the startup process is taking that long in the first place.

    Regards,
    Ryan


0 additional answers

Sort by: Most helpful

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.