简体   繁体   English

Tomcat 7使用JDK 7突然关闭

[英]Tomcat 7 shuts down abruptly with JDK 7

In our development environment, we have 2 Tomcat 7.0.22 nodes on Cent OS 5.5 handled by F5 load balancer with sticky sessions. 在我们的开发环境中,我们在Cent OS 5.5上有2个Tomcat 7.0.22节点,由F5负载均衡器处理,具有粘性会话。 We recently upgraded to JDK 7 and have started observing random tomcat shutdowns. 我们最近升级到JDK 7并开始观察随机tomcat关闭。 Multiple wars are deployed from common shared loader directory. 从公共共享加载器目录部署多个战争。 The pattern during shutdown is as follows 关机期间的模式如下

  • In majority cases, both nodes shutdown one after the other. 在大多数情况下,两个节点一个接一个地关闭。 In one scenario, one tomcat died while other was still up. 在一个场景中,一个tomcat死了,而另一个仍在运行。
  • catalina logs indicate shutdown was graceful after printing "INFO: Stopping service Catalina" catalina日志显示打印后关闭是优雅的“INFO:停止服务Catalina”
  • We couldn't find any System.exit calls 我们找不到任何System.exit调用
  • No indication of OOM 没有OOM的迹象
  • We added a shutdown hook to our spring container and the thread dumps didn't raise any suspicious thread. 我们在spring容器中添加了一个关闭钩子,并且线程转储没有引发任何可疑线程。
  • No watchdog service being run in background 没有看门狗服务在后台运行
  • Observed one script under etc/lograte.d that rotated logs 在etc / lograte.d下观察了一个旋转日志的脚本
  • HTTP 1.1 connector for 8080, redirect 8443 用于8080的HTTP 1.1连接器,重定向8443
  • AJP for 8009, redirect 8443 AJP为8009,重定向8443

I have run out of ideas to debug this issue. 我已经没有想法来调试这个问题。 Basically, I'm looking out for a hook or debugger which lets me know the exact process or thread which has invoked shutdown. 基本上,我正在寻找一个钩子或调试器,让我知道已经调用shutdown的确切进程或线程。 This should be possible since its a graceful shutdown and Tomcat handled it. 这应该是可能的,因为它正常关闭并且Tomcat处理它。

We will mostly revert to JDK 1.6 and test for few days. 我们将主要恢复到JDK 1.6并测试几天。 Till then, any help or pointers will be appreciated 到那时,任何帮助或指针将不胜感激

Thanks in advance! 提前致谢!

既然你提到了logrotate,你是否试过手动运行logrotate [/ usr / sbin / logrotate /etc/logrotate.conf]并观察它是否负责关机?

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM