Tomcat 自动关闭 [英] Tomcat shuts down automatically

查看:33
本文介绍了Tomcat 自动关闭的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在 Windows 服务器上使用 Apache 和 Tomcat,从今天早上开始,Tomcat 停止工作,没有任何日志.它没有挂起,只是关闭了.
Tomcat 没有登录,CPU/内存很好,我的代码中没有 System.Exit.

I'm using Apache and Tomcat on a Windows server and since this morning, Tomcat stops working without any logs. It doesn't hang, it just shut down.
There's no log in Tomcat, the CPU/Memory are fines, there are no System.Exit in my code.

有人遇到过这个问题吗?

Anybody ever had this problem?

它在 5-10 分钟后随机发生.应用程序正常响应,但有时会突然停止工作.

It happens at random, after 5-10 minutes. The application responds normally and sometime, boom.. stops working.

更新:仍然没有线索.管理团队将在另一个盒子上安装 webapp...

UPDATE : Still no clue. The Admin team will install the webapp on another box...

推荐答案

我的 tomcat 启动脚本最后一行 tail -f catalina.out.

My script to start tomcat had last line tail -f catalina.out.

有时我没有杀死这个脚本,然后 shell 超时并杀死了所有子进程的脚本,包括 tomcat.

Sometime I did not kill this script, the shell then timed out and killed the script with all child processes, including tomcat.

这篇关于Tomcat 自动关闭的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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