2016-05-17 11 views
0

最近、自動的にシャットダウンするとTomcatが何度か起きます。しかしcatalina.outtomcatの自動シャットダウンの原因をcatalina.outで調べるには

サーバによって理由が見つかりません:Linuxの(1つのコアCPU、1Gメモリ)

のTomcat:7.0.65

TomcatはJVM設定追加のserver.xml: JAVA_OPTSの=の " - サーバー-Xms256m -Xmx512m -XX:PermSizeを= 256M -XX:MaxPermSizeを= 512メートル」

catalina.out

2016-05-17 00:31:55 -173311 [http-bio-8080-exec-5] DEBUG - ==> Parameters: 3(String) 
2016-05-17 00:31:55 -173313 [http-bio-8080-exec-5] DEBUG - Closing non transactional SqlSession [[email protected]] 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol pause 
INFO: Pausing ProtocolHandler ["http-bio-8080"] 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol pause 
INFO: Pausing ProtocolHandler ["ajp-bio-8009"] 
May 17, 2016 2:43:14 AM org.apache.catalina.core.StandardService stopInternal 
INFO: Stopping service Catalina 
2016-05-17 02:43:14 -8036625 [localhost-startStop-2] INFO - Closing WebApplicationContext for namespace 'springMvc-servlet': startup date [Tue May 17 00:29:22 CST 2016]; parent: Root WebApplicationContext 
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc 
SEVERE: The web application [/legoms] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc 
SEVERE: The web application [/legoms] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads 
SEVERE: The web application [/legoms] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. 
2016-05-17 02:43:14 -8051975 [localhost-startStop-2] INFO - Closing WebApplicationContext for namespace 'springMvc-servlet': startup date [Tue May 17 00:29:10 CST 2016]; parent: Root WebApplicationContext 
log4j:WARN No appenders could be found for logger (org.springframework.web.context.support.XmlWebApplicationContext). 
log4j:WARN Please initialize the log4j system properly. 
log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc 
SEVERE: The web application [] registered the JDBC driver [com.alibaba.druid.proxy.DruidDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesJdbc 
SEVERE: The web application [] registered the JDBC driver [com.mysql.jdbc.Driver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads 
SEVERE: The web application [] appears to have started a thread named [Abandoned connection cleanup thread] but has failed to stop it. This is very likely to create a memory leak. 
May 17, 2016 2:43:14 AM org.apache.catalina.loader.WebappClassLoaderBase checkThreadLocalMapForLeaks 
SEVERE: The web application [] created a ThreadLocal with key of type [org.apache.shiro.util.ThreadContext.InheritableThreadLocalMap] (value [[email protected]e24d54]) and a value of type [java.util.HashMap] (value [{org.apache.shiro.util.ThreadContext_SECURITY[email protected]2f42fc9e, org.apache.shiro.util.ThreadContext_SUBJEC[email protected]56d7014f}]) but failed to remove it when the web application was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak. 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol stop 
INFO: Stopping ProtocolHandler ["http-bio-8080"] 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol stop 
INFO: Stopping ProtocolHandler ["ajp-bio-8009"] 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol destroy 
INFO: Destroying ProtocolHandler ["http-bio-8080"] 
May 17, 2016 2:43:14 AM org.apache.coyote.AbstractProtocol destroy 
INFO: Destroying ProtocolHandler ["ajp-bio-8009"] 

答えて

0

Tomcatサーバーが私をシャットダウンすることができた理由JVMを起動する必要があるオペレーティングシステムの更新(おそらくカーネルの更新)が原因です。 yumや、システムが使用しているパッケージマネージャーから始めてオペレーティングシステムログを調べることで、まず更新があったかどうか、そしてサーバーが停止したときの動作を確認します。

これは私にとってかなり数回起こりました。

+0

ありがとうございました。どのシステムログファイルを見つけるか?最新の更新ログファイルではない 'ls -l/var/log /'を使用してください。 –

+0

多くのログがソートされるべきではありません。特定の日付/時刻を検索します。たとえば、centosシステムでは、メッセージ、yum.log、安全なファイルがあります。 –

関連する問題