请求中的GAE错误代码104中断了一些后续请求

时间:2014-08-06 11:29:24

标签: java google-app-engine timeout

我们遇到以下错误模式:

  1. 有时我们会对GAE app请求处理持续很长时间,因为GAE有1分钟的限制,因此会抛出DeadlineExceededException。这是由docs描述的,好的。
  2. 除了DeadlineExceededException,我们得到A problem was encountered with the process that handled this request, causing it to exit. This is likely to cause a new process to be used for the next request to your application. If you see this message frequently, you may be throwing exceptions during the initialization of your application. (Error code 104)
  3. 在接下来的几毫秒内发送到GAE应用程序的后续请求失败并使用相同的Error code 104
  4. 问题:

    • 为什么会报告#2?
    • 我们如何避免#3?这是GAE中的错误吗?这种失败的机制是什么?

    感谢您的帮助。

1 个答案:

答案 0 :(得分:1)

正如Bruyere所指出的那样,在超时异常导致的相关线程查杀详细here

  

如果通过“threadsafe”标志启用并发请求,则每个其他正在运行的并发请求都将被终止,错误代码为104: