Azure app service restart loop

Bewes, Ant 1 Reputation point
2021-10-02T16:16:15.093+00:00

We have a Java/spring boot app deployed to IIS with embedded tomcat as an azure app service. When the app service is started the app logs show a restart occurs (new pid) every 11 minutes for the same instance - we don’t see any logs indicating a successful start nor any logs indicating a failure .

After 90 minutes it will eventually deploy successfully indicating a successful start.

There’s nothing i can see from the embedded tomcat logs nor org.springframework logs suggesting any issue, however on occasion it can start in under 2 mins.

I don’t know where else to look for a startup error. Is there a constraint on the allowed app service startup time that is causing it to restart? I’ve tried upgrading the app service plan in case memory or cpu were the constraint but with the same results.

Azure Managed Applications
Azure Managed Applications
An Azure service that enables managed service providers, independent software vendors, and enterprise IT teams to deliver turnkey solutions through the Azure Marketplace or service catalog.
139 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,758 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Ryan Hill 28,106 Reputation points Microsoft Employee
    2021-11-02T15:29:35.53+00:00

    Hi @Bewes, Ant ,

    If you're still hitting this app service restart issue when you're deploying your app, one area to check is the deployment logs by enabling Application Logging (Filesystem) from the App Service Logs blade.

    145805-image.png

    These logs are written to to D:\home\LogFiles\Application\ for Java & Tomcat apps (ex: Check for catalina.yyyy-mm-dd.logs). If you're using your own custom logging.properties configuration file, those logs can be seen in either D:\home\LogFiles or D:\home\site\wwwroot\bin\apache-tomcat-x.x.x.x\logs.

    You can also try increasing the <httpPlatform startupTimeLimit=> in your D:\home\site\wwwroot\web.config which is set to 10 by default.

    0 comments No comments

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.