[英]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故障排除步骤
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
。
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
,如下所示。
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.