我的后端作业基于 cron 作业(每 4 小时一次)运行。但它在没有处理数据的情况下终止。服务器日志显示如下:
500 15377121ms 0kb instance=0 AppEngine-Google; (+http://code.google.com/appengine)
E 2012-10-05 01:50:18.044 Process terminated because the backend took too long to shutdown.
如何在我的程序中处理这种错误
最佳答案
当 App Engine 需要关闭您的后端但后端无法在 30 秒内退出时,会生成该错误。列出了可能发生这种情况的一些原因 here .根据错误的类型,App Engine 可能会向您的后端发送即将关闭的通知,因此最好发送给 register a shutdown handler。这样您就可以在这种情况即将发生时收集更多关于应用状态的数据。
如果您经常看到这种情况,则可能有系统的解释,例如您的作业内存超过了后端类的最大值。
关于java - GAE :Process terminated because the backend took too long to shut down in backends job,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/12739411/