码头在一段时间后停止响应 [英] Jetty stops responding after some period of time

查看:101
本文介绍了码头在一段时间后停止响应的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有码头网络服务器的项目. 该应用程序已启动并且可以正常运行.一段时间(不知道确切的时间)后,如果我尝试访问收到的应用程序:

I have a project with jetty webserver. The app is up and works fine. After some period (don't know exactly when) if I try to access the app I receive:

您要查找的页面暂时不可用.请尝试 再过一遍."

"The page you are looking for is temporarily unavailable. Please try again later."

该应用还设置了调度程序.我会怀疑超时,但事实并非如此.通过分析日志,我注意到:2017-12-08

The app has schedulers set as well. I would be suspicious for timeout but it's not the case. By analyzing the logs I noticed: 2017-12-08

12:45:24.566:WARN:oejsh.ErrorHandler:qtp1555845260-195:错误页面 循环/error/not-found.faces.

12:45:24.566:WARN:oejsh.ErrorHandler:qtp1555845260-195: Error page loop /error/not-found.faces.

我没有看到其他任何可能导致此问题的日志.有解决方案的建议吗?

I don't see any other logs which can cause the issue. Any suggestions for solution?

推荐答案

可能的情况是您在Jetty部署中设置了默认的work/temp目录,并且会定期清理系统临时目录.

The likely case is that you have the default work/temp directory setup in your Jetty deployment and there is a process on your machine that periodically cleans up the system temp directory.

建议您指定工作目录或临时目录(jvm temp,jetty.base temp或webapp temp).

Would suggest you specify the work directory or the temp directory (either jvm temp, jetty.base temp, or webapp temp).

有关如何配置work/temp目录,请参阅先前的答案.

See previous answers on how to configure the work / temp directory.

  • How to change the temporary directory in jetty9?
  • Jetty: Starts in C:\Temp

这篇关于码头在一段时间后停止响应的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆