【发布时间】:2020-12-21 07:00:25
【问题描述】:
我的 java 应用程序在 GAE 上运行了很长时间。今天应用程序返回了 500,而 appengine 日志只显示消息:
"Process terminated because the machine was forced to shutdown"
我找不到任何文档来解释该消息的原因。
关于关机生命周期的唯一文档是https://cloud.google.com/appengine/docs/standard/java/how-instances-are-managed#shutdown
Shutdown
The shutdown process might be triggered by a variety of planned and unplanned events, such as:
You manually stop an instance.
You deploy an updated version to the service.
The instance exceeds the maximum memory for its configured instance_class.
Your application runs out of Instance Hours quota.
Your instance is moved to a different machine, either because the current machine that is running the instance is restarted, or App Engine moved your instance to improve load distribution.
嗯,唯一合理的原因是最后一个,但是,我不相信消息指的是“应用引擎移动了您的实例......”
我的应用程序配置:
<instance-class>B4_HIGHMEM</instance-class>
<runtime>java8</runtime>
<basic-scaling>
<max-instances>1</max-instances>
<idle-timeout>1m</idle-timeout>
</basic-scaling>
有什么想法吗? 问候
【问题讨论】:
标签: java google-app-engine google-cloud-platform