tomcat-7.0.23 在 aws 服务器上自动关闭

tomcat-7.0.23 在 aws 服务器上自动关闭

在AWS服务器上安装了tomcat tomcat-7.0.23,但是我启动的最后一个tomcat服务器自动关闭了。遇到过类似的问题”aws 上的 tomcat 自动关闭“,但没有解决我的问题。以下是关闭时 catalina.out 文件中的行。

05-Jul-2017 18:13:30.823 INFO [Thread-6] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["http-bio-9580"]
05-Jul-2017 18:13:30.874 INFO [Thread-6] org.apache.coyote.AbstractProtocol.pause Pausing ProtocolHandler ["ajp-bio-9509"]
05-Jul-2017 18:13:30.924 INFO [Thread-6] org.apache.catalina.core.StandardService.stopInternal Stopping service Catalina
05-Jul-2017 18:13:30.930 SEVERE [pool-2-thread-2] org.apache.catalina.loader.WebappClassLoader.clearReferencesThreads The web application [/webcommon] appears to have started a thread named [Hikari Housekeeping Timer (pool HikariPool-2)] but has failed to stop it. This is very likely to create a memory leak.
05-Jul-2017 18:13:31.999 INFO [Thread-6] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["http-bio-9580"]
05-Jul-2017 18:13:32.000 INFO [Thread-6] org.apache.coyote.AbstractProtocol.stop Stopping ProtocolHandler ["ajp-bio-9509"]
05-Jul-2017 18:13:32.001 INFO [Thread-6] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["http-bio-9580"]
05-Jul-2017 18:13:32.002 INFO [Thread-6] org.apache.coyote.AbstractProtocol.destroy Destroying ProtocolHandler ["ajp-bio-9509"]

上述问题有解决办法吗?

答案1

您是否检查过系统日志,看看是否有任何根本原因的线索?它是哪个服务器 - Linux 还是 Windows?如果是 Linux,则可以通过 OOM(OutOfMemory)杀手程序来完成 - 这是一种特殊的系统进程,旨在在可用内存不足的情况下杀死最耗内存的进程。

相关内容