tomcat运行一段时间后自动关闭,求大家帮忙分析下
项目部署在tomcat上,持续运行大概1-2个月左右,期间程序可正常运行,但是报错后tomcat就无法连接到数据库,只能看到登录界面。报错显示各种停止,最后跳到提示端口号被占用,但是除此tomcat启动外并无其他任何有关java的程序开启。
个人分析有可能是内存溢出或者数据库连接池的问题,但是具体原因和解决办法不知。
请各位大神帮忙分析一下,谢谢!
因日志字符串过长中间有所省略,大约10行左右,但报错信息都是一个模式如下(中括号内的内容不同其余一样):
个人分析有可能是内存溢出或者数据库连接池的问题,但是具体原因和解决办法不知。
请各位大神帮忙分析一下,谢谢!
六月 24, 2017 4:13:54 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-apr-8080"]
六月 24, 2017 4:13:54 下午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-apr-8009"]
六月 24, 2017 4:13:54 下午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/KQZB] 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/KQZB] appears to have started a thread named [Timer-0] but has failed to stop it. This is very likely to create a memory leak.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/KQZB] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#0] but has failed to stop it. This is very likely to create a memory leak.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/KQZB] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#1] but has failed to stop it. This is very likely to create a memory leak.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/KQZB] appears to have started a thread named [com.mchange.v2.async.ThreadPoolAsynchronousRunner$PoolThread-#2] but has failed to stop it. This is very likely to create a memory leak.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@e81725]) and a value of type [java.lang.Class] (value [class oracle.sql.AnyDataFactory]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [java.lang.ThreadLocal] (value [java.lang.ThreadLocal@147b4f8]) and a value of type [java.lang.Class] (value [class oracle.sql.TypeDescriptorFactory]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@1c37ed5]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@1bbe551]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [org.apache.xmlbeans.XmlBeans$1] (value [org.apache.xmlbeans.XmlBeans$1@cc4c9b]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@b96e2b]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [org.apache.xmlbeans.impl.store.Locale$1] (value [org.apache.xmlbeans.impl.store.Locale$1@1efca72]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@1d43185]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl$1] (value [org.apache.xmlbeans.impl.schema.SchemaTypeLoaderImpl$1@1ff41dc]) and a value of type [java.util.ArrayList] (value [[java.lang.ref.SoftReference@13cf771]]) 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.
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@1c37ed5]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@1994040]) 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.
因日志字符串过长中间有所省略,大约10行左右,但报错信息都是一个模式如下(中括号内的内容不同其余一样):
六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [***] (value [****]) and a value of type [****] (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.六月 24, 2017 4:13:56 下午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/KQZB] created a ThreadLocal with key of type [net.sf.json.AbstractJSON.CycleSet] (value [net.sf.json.AbstractJSON$CycleSet@1c37ed5]) and a value of type [java.lang.ref.SoftReference] (value [java.lang.ref.SoftReference@169fd]) 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.
六月 24, 2017 4:13:56 下午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-apr-8080"]
六月 24, 2017 4:14:16 下午 org.apache.catalina.core.AprLifecycleListener init
信息: Loaded APR based Apache Tomcat Native library 1.1.29 using APR version 1.4.8.
六月 24, 2017 4:14:16 下午 org.apache.catalina.core.AprLifecycleListener init
信息: APR capabilities: IPv6 [true], sendfile [true], accept filters [false], random [true].
六月 24, 2017 4:14:18 下午 org.apache.catalina.core.AprLifecycleListener initializeSSL
信息: OpenSSL successfully initialized (OpenSSL 1.0.1e 11 Feb 2013)
六月 24, 2017 4:14:20 下午 org.apache.coyote.AbstractProtocol init
信息: Initializing ProtocolHandler ["http-apr-8080"]
六月 24, 2017 4:14:20 下午 org.apache.coyote.AbstractProtocol init
严重: Failed to initialize end point associated with ProtocolHandler ["http-apr-8080"]
java.lang.Exception: Socket listen failed: [730055] ???????????????×??ò???????ú????????????
at org.apache.tomcat.util.net.AprEndpoint.bind(AprEndpoint.java:435)
at org.apache.tomcat.util.net.AbstractEndpoint.init(AbstractEndpoint.java:640)
at org.apache.coyote.AbstractProtocol.init(AbstractProtocol.java:434)
at org.apache.catalina.connector.Connector.initInternal(Connector.java:978)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardService.initInternal(StandardService.java:559)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.core.StandardServer.initInternal(StandardServer.java:813)
at org.apache.catalina.util.LifecycleBase.init(LifecycleBase.java:102)
at org.apache.catalina.startup.Catalina.load(Catalina.java:638)
at org.apache.catalina.startup.Catalina.load(Catalina.java:663)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at org.apache.catalina.startup.Bootstrap.load(Bootstrap.java:280)
at org.apache.catalina.startup.Bootstrap.main(Bootstrap.java:454)
...全文
相关推荐
tomcat自动关闭原因
tomcat自动关闭原因
一次tomcat自动关闭的bug解决
前言 最近一个运行了4年的javaee web项目,经常接到客户反馈系统无法打开。登录服务器查看服务,发现是tomcat自动关闭了。基本是3到4天发生一次。 运维人员开始以为是其他服务杀死了tomcat服务,没放在心上,解决方法就是直接重启tomcat。 最终捅了篓子,运维人员被客户投诉,扣了一个月的绩效。 解决这个bug兜兜转转来到了我这里。既然接到任务,那就开干,没有解决不了的bug。 系统的运行环境如下: tomcat6.0 32位jdk7.0 window server2003 32位,32G内存。 查看日志,如果tomcat闪崩,都会在tomcat的bin目录下生成以”
tomcat启动和关闭
NULL 博文链接:https://269181927.iteye.com/blog/789204
检测Tomcat运行状态-自动重启
检测Tomcat运行状态-自动重启
强制关闭tomcat sh脚本
NULL 博文链接:https://lym6520.iteye.com/blog/2157690


