当前位置: 代码迷 >> J2EE >> 什么原因导致tomcat 莫名的封闭
  详细解决方案

什么原因导致tomcat 莫名的封闭

热度:59   发布时间:2016-04-17 23:03:24.0
什么原因导致tomcat 莫名的关闭
我把tomcat日志帖上来,有看懂的朋友帮帮忙!
用了quartz ,但没用spring管理,框架是自己的。

数据库连接池用了org.logicalcobwebs.proxool。

下面是出错前的日志,到底是什么原因导致的呢?怎么解决,大家帮我看看。


[DEBUG] 12时49分33秒033               Oracle(line 171  ):   000018 (00/04/00) - House keeping triggerSweep done
[DEBUG] 12时50分03秒003               Oracle(line 81   ):   000018 (00/03/01) - Testing connection 1: True
[DEBUG] 12时50分03秒003               Oracle(line 81   ):   000018 (00/03/01) - Testing connection 2: True
[DEBUG] 12时50分03秒003               Oracle(line 81   ):   000018 (00/03/01) - Testing connection 3: True
[DEBUG] 12时50分03秒003               Oracle(line 81   ):   000018 (00/03/01) - Testing connection 4: True
[DEBUG] 12时50分03秒003               Oracle(line 171  ):   000018 (00/04/00) - House keeping triggerSweep done
[DEBUG] 12时50分25秒025         ShutdownHook(line 93   ):   Running ShutdownHook
[INFO] 12时50分25秒025               Oracle(line 484  ):   Shutting down 'Oracle' pool immediately [Shutdown Hook]
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-bio-8080"]
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-bio-8009"]
九月 01, 2015 12:50:25 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
[DEBUG] 12时50分25秒025               Oracle(line 441  ):   000018 (00/03/00) - #0004 removed because of shutdown.
[DEBUG] 12时50分25秒025               Oracle(line 547  ):   Connection #4 closed
[INFO] 12时50分25秒025            Framework(line 29   ):   destroy
[DEBUG] 12时50分25秒025               Oracle(line 441  ):   000018 (00/02/00) - #0003 removed because of shutdown.
[DEBUG] 12时50分25秒025               Oracle(line 547  ):   Connection #3 closed
[DEBUG] 12时50分25秒025               Oracle(line 441  ):   000018 (00/01/00) - #0002 removed because of shutdown.
[DEBUG] 12时50分25秒025               Oracle(line 547  ):   Connection #2 closed
[DEBUG] 12时50分25秒025               Oracle(line 441  ):   000018 (00/00/00) - #0001 removed because of shutdown.
[DEBUG] 12时50分25秒025               Oracle(line 547  ):   Connection #1 closed
[INFO] 12时50分25秒025               Oracle(line 564  ):   'Oracle' pool has been closed down by Shutdown Hook in 17 milliseconds.
[INFO] 12时50分25秒025 PrototyperController(line 100  ):   Stopping Prototyper thread
[INFO] 12时50分25秒025 HouseKeeperController(line 107  ):   Stopping HouseKeeper thread
[DEBUG] 12时50分25秒025               Oracle(line 574  ):   Ignoring duplicate attempt to shutdown 'Oracle' pool by localhost-startStop-2
[INFO] 12时50分25秒025      QuartzScheduler(line 707  ):   Scheduler My_Quartz_$_NON_CLUSTERED shutting down.
[INFO] 12时50分25秒025      QuartzScheduler(line 626  ):   Scheduler My_Quartz_$_NON_CLUSTERED paused.
[INFO] 12时50分25秒025      QuartzScheduler(line 801  ):   Scheduler My_Quartz_$_NON_CLUSTERED shutdown complete.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [] registered the JDBC driver [oracle.jdbc.OracleDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [HouseKeeper] but has failed to stop it. This is very likely to create a memory leak.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [My_Quartz_Worker-1] but has failed to stop it. This is very likely to create a memory leak.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
....
严重: The web application [] appears to have started a thread named [My_Quartz_Worker-60] but has failed to stop it. This is very likely to create a memory leak.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [] appears to have started a thread named [OracleTimeoutPollingThread] but has failed to stop it. This is very likely to create a memory leak.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@128e2a68]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@33821b5c]) 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.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@128e2a68]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@22d24f6f]) 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.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [org.apache.commons.lang.builder.ToStringStyle$1] (value [org.apache.commons.lang.builder.ToStringStyle$1@1d5d1245]) and a value of type [java.util.HashSet] (value [[]]) 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.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@128e2a68]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@495a7f12]) 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.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@128e2a68]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@544c9c5d]) 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.
九月 01, 2015 12:50:25 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@128e2a68]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@71adc8e7]) 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.
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-bio-8080"]
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["ajp-bio-8009"]
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-bio-8080"]
九月 01, 2015 12:50:25 下午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-bio-8009"]
[root@pqsoft-weixin-server ~]# 



------解决思路----------------------
看样子你的应用内存泄露啊

tomcat有内存泄露保护机制,就把这应用停掉了,

http://wiki.apache.org/tomcat/MemoryLeakProtection
  相关解决方案