各位大神,您们好!
小弟最近遇到一个难解的问题,希望大神指点一二。
项目描述:
1、项目中框架用的是springmvc+mybatis,中间加了elasticsearch和rabbitmq,数据库用的是mysql,连接池用的是阿里的druid
2、项目是分开部署的,共用了5个tomcat,之前开发是单个单个启动调试所以没发现问题。但现在找了台服务器一起部署,然后。。。就经常会全挂。
下面是某台tomcat挂后最后打印的部分日志。还请大神能提出解决方案!成分感谢!
Jul 13, 2016 4:46:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["http-bio-8383"]
Jul 13, 2016 4:46:52 PM org.apache.coyote.AbstractProtocol start
INFO: Starting ProtocolHandler ["ajp-bio-8389"]
Jul 13, 2016 4:46:52 PM org.apache.catalina.startup.Catalina start
INFO: Server startup in 13990 ms
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["http-bio-8383"]
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol pause
INFO: Pausing ProtocolHandler ["ajp-bio-8389"]
Jul 13, 2016 8:11:58 PM org.apache.catalina.core.StandardService stopInternal
INFO: Stopping service Catalina
[INFO][2016-07-13 20:11:58][org.springframework.web.context.support.XmlWebApplicationContext]Closing WebApplicationContext for namespace 'spring-mvc-servlet': startup date [Wed Jul 13 16:46:49 CST 2016]; parent: Root WebApplicationContext
[INFO][2016-07-13 20:11:58][org.springframework.web.context.support.XmlWebApplicationContext]Closing Root WebApplicationContext: startup date [Wed Jul 13 16:46:42 CST 2016]; root of context hierarchy
[INFO][2016-07-13 20:11:58][org.springframework.context.support.DefaultLifecycleProcessor]Stopping beans in phase -2147482648
[INFO][2016-07-13 20:11:58][org.springframework.data.elasticsearch.client.TransportClientFactoryBean]Closing elasticSearch client
[INFO][2016-07-13 20:11:58][com.alibaba.druid.pool.DruidDataSource]{dataSource-1} closed
Jul 13, 2016 8:11:58 PM 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.
Jul 13, 2016 8:11:58 PM 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.
Jul 13, 2016 8:11:58 PM 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.
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["http-bio-8383"]
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol stop
INFO: Stopping ProtocolHandler ["ajp-bio-8389"]
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["http-bio-8383"]
Jul 13, 2016 8:11:58 PM org.apache.coyote.AbstractProtocol destroy
INFO: Destroying ProtocolHandler ["ajp-bio-8389"]