Tomcat停止时没有任何日志或任何堆栈 [英] Tomcat stopped without any log or any stack

查看:1627
本文介绍了Tomcat停止时没有任何日志或任何堆栈的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我们遇到了Tomcat 5.5的问题,在我们的生产服务器(Linux CentOS 4.8)停止,我们不知道为什么停止...
没有Tomcat的日志catalina.out或任何应用程序的日志

We have trouble with Tomcat 5.5 which stops at night on our production servers (Linux CentOS 4.8) and we have no idea why it stops... There is no Tomcat's log in catalina.out or any application's log.

我们尝试了不同的方法来找到服务器停止的原因:

We tried different things to find why the server stops:


  • configure Tomcat能够使用javassist生成核心转储

  • instrument System.exit()方法来查找方法是否被调用

  • 向JVM添加关闭挂接(使用 Runtime.getRuntime()。addShutdownHook()

  • configure Tomcat to be able to generate a core dump
  • instrument System.exit() method with javassist to find if the method was called
  • add a shutdown hook to the JVM (with Runtime.getRuntime().addShutdownHook())

它们都没有工作,我们没有核心转储,不调用Exit方法和关闭挂钩。
我的结论是:

None of them worked, we have no core dump, the Exit method and the shutdown hook are not called. My conclusions are:


  • VM未正确终止,但无任何日志崩溃。

任何想法或日志读取以找到Tomcat为什么停止?

Any idea or log to read to find why Tomcat stops?

推荐答案

2)检查Tomcat的内存限制以及可用内存大小系统有。查看/ var / log下的Linux系统日志,以查看在此期间是否发生可疑。例如,如果系统内存不足,内核可以随机杀死一个进程(几乎)。

2) Check the memory limits on Tomcat and how much free memory does the system have. Review the Linux system logs under /var/log to see if anything suspicious happened during the time. For example, kernel can randomly kill a process (almost) without a trace if the system is running low on memory.

我们已经在生产中运行了5.5年,有任何不明原因的停机,FWIW。

We've ran 5.5 in production for years and never had any unexplained shutdowns, FWIW.

这篇关于Tomcat停止时没有任何日志或任何堆栈的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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