简体   繁体   English

azure 应用服务与 spring 启动:等待响应预热

[英]azure app service with a spring boot : waiting for response to warmup

I deploy a spring boot application on azure (app service), but it takes many time to get started (20 minutes sometimes), I always have in the logs this line with many occurences:我在 azure(应用程序服务)上部署了 spring 引导应用程序,但需要很长时间才能开始(有时需要 20 分钟),我在日志中总是有这行出现很多情况:

Waiting for response to warmup request for container myapp_id_on_azure_0_917c0e77. Elapsed time = 326.0884541 sec

I seems to wait something to effectively start the application... but what?我似乎在等待一些东西来有效地启动应用程序......但是什么? Anyone have tips?有人有提示吗?

FYI: I execute: java -jar /home/site/wwwroot/my_app.jar for starting my application.仅供参考:我执行: java -jar /home/site/wwwroot/my_app.jar来启动我的应用程序。 I not define any server port in application.properties on my spring boot application.我没有在我的 spring 启动应用程序的 application.properties 中定义任何服务器端口。 I also verify that on " general settings " of the app service the option " always on " is enabled...我还确认在应用服务的“常规设置”中启用了“始终开启”选项...

FYI: I execute: java -jar /home/site/wwwroot/my_app.jar仅供参考:我执行:java -jar /home/site/wwwroot/my_app.jar

From this sentence, I can probably guess that you are using the linux platform.从这句话,我大概可以猜到你使用的是linux平台。

I think your question is meaningless, in the absence of any log.在没有任何日志的情况下,我认为您的问题毫无意义。 So there should be no one who can give you a direct and effective solution, but can only provide you with troubleshooting ideas.所以应该没有人能给你一个直接有效的解决方案,而只能为你提供故障排除思路。

Troubleshooting steps故障排除步骤

  1. If you use windows platform, you should add web.config under wwwroot folder.如果您使用 windows 平台,则应在wwwroot文件夹下添加web.config

    Instead of executing java -jar /home/site/wwwroot/my_app.jar in the command line.而不是在命令行中执行java -jar /home/site/wwwroot/my_app.jar

  2. If you use linux paltform, and your webapp use myapp.jar file, so you should use Java SE , like below.如果你使用 linux paltform,而你的 webapp 使用myapp.jar文件,那么你应该使用Java SE ,如下所示。

    在此处输入图像描述

  3. Whatever paltform you use, you shold check application log, find error message, it will help you solve the issues.无论您使用什么平台,您都应该检查应用程序日志,查找错误消息,它将帮助您解决问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 Spring 使用 Azure 应用服务启动应用端点 - Spring boot app endpoints with Azure App service Spring 引导容器在 Azure 应用服务中具有信任库 - Spring boot container With truststore in Azure App Service 在Azure App Service上部署Spring Boot jar - Deploy Spring Boot jar on Azure App Service Azure 应用服务 - Spring 启动 - Hikari 错误 - Azure App Service - Spring Boot - Hikari Errors Spring Boot 应用程序的 Azure 应用服务部署在 Jenkins 中不起作用 - Azure App Service deploy of Spring Boot app not working from Jenkins Azure Web App Service日志记录中的Spring Boot MVC无法按预期工作 - Spring Boot MVC in Azure Web App Service logging is not working as expected Azure 应用服务上的容器化 Spring Boot Web 应用由于 302 错误而导致运行状况检查失败 - Containerized Spring Boot web app on Azure app service has health check failing due to 302 error How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as.WAR)? - How to increase maximum HTTP header size for Java Spring Boot app hosted in Azure App Service (deployed as .WAR)? Azure Service Fabric中的Java Spring引导 - Java Spring Boot in Azure Service Fabric HTTP错误502.3-在Azure Tomcat应用程序服务中部署Spring Boot应用程序后,网关错误 - HTTP Error 502.3 - Bad Gateway when after deploying Spring boot application in azure tomcat app service
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM