Tomcat 意外关闭
雄猫:6.0.20.0 操作系统:Windows Server2003 架构:x86 JVM:1.5.0_19
我们有一个 Tomcat 实例似乎意外关闭。日志如下所示:
[DATE] org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
[DATE] org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
[DATE] org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
日志中没有出现内存不足等异常情况。它看起来像是一次干净优雅的关闭。我们应用程序中的代码已检查 System.exit()。另外,也不应该向端口 8005 发送 SHUTDOWN。
我们在 C# 中有一个服务包装器,它使用启动/停止命令调用 .bat,而该命令又调用 catalina.bat。每当 Tomcat 意外关闭时,该服务仍显示 Tomcat 正在运行。应用程序日志不会记录服务意外关闭,但会记录通过 Windows 中的服务手动完成的关闭。
Tomcat 管理器未配置。
Tomcat: 6.0.20.0
OS: Windows Server2003
Architecture: x86
JVM: 1.5.0_19
We have a Tomcat instance that looks to be shutting down unexpectedly. The logs look like the following:
[DATE] org.apache.coyote.http11.Http11Protocol pause
INFO: Pausing Coyote HTTP/1.1 on http-8080
[DATE] org.apache.catalina.core.StandardService stop
INFO: Stopping service Catalina
[DATE] org.apache.coyote.http11.Http11Protocol destroy
INFO: Stopping Coyote HTTP/1.1 on http-8080
There are no exceptions such as out of memory in the logs. It looks like a clean graceful shutdown. The code in our app has been checked for System.exit(). Also nothing should be sending SHUTDOWN to port 8005.
We have a service wrapper in c# that calls a .bat with start/stop commands which in turn call catalina.bat. The service still shows Tomcat as running whenever Tomcat shuts down unexpectedly. The App logs do not log the service shutdown when it's unexpected but logs shutdowns manually done through the service in Windows.
Tomcat Manager is not configured.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论