Deploy Spring Boot jar on Azure App Service

Bert Vandamme :

I'm having trouble getting a Spring Boot API to work on an Azure app service. I've followed the Microsoft guide on https://docs.microsoft.com/en-us/java/azure/spring-framework/deploy-spring-boot-java-web-app-on-azure but having no luck so far.

The application does start (I can see the app boot up in the log file) but http requests to the app service url always end in a timeout.

I've read that Azure app services only pick up embedded tomcat servers that run on port 80 or 8080, but had no luck with that as well.

The app is deployed in the www root and an appropriate web.config is deployed as well.

I've tried running the App Service with and without an application server (Tomcat and Jetty, that is not needed because the server is embedded in the application), but both approaches failed.

Am I missing some other configuration part? Or could this be related to the type of plan I'm using on azure? Maybe some issue with the resource?

Any pointers?

Thx,

Bert

Bert Vandamme :

It turns out that my hunch about it being an issue with the azure resource was correct. Upscaling resource memory and CPU resolved the issue.

Guess you like

Origin http://10.200.1.11:23101/article/api/json?id=462017&siteId=1
Recommended