tomcat有时候运行一段时间就报INFO zkclient.ZkEventThread: Terminate ZkClient event thread.
INFO zookeeper.ZooKeeper: Session: 0x25f333b00620041 closed
然后报一堆内存溢出
SEVERE: The web application [/superapi] appears to have started a thread named [DubboRegistryFailedRetryTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/superapi] appears to have started a thread named [localhost-startStop-1-SendThread(hfftautzk02:2181)] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/superapi] appears to have started a thread named [DubboSaveRegistryCache-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/superapi] appears to have started a thread named [DubboClientReconnectTimer-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/superapi] appears to have started a thread named [NettyClientBoss-thread-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
SEVERE: The web application [/superapi] appears to have started a thread named [New I/O client worker #1-1] but has failed to stop it. This is very likely to create a memory leak.
Nov 29, 2017 7:10:48 PM org.apache.catalina.loader.WebappClassLoaderBase clearReferencesThreads
导致tomcat挂掉,有没有大神帮忙分析下什么原因,偶发性的,
你运行的tomcat配置应该是默认的内存,比较小,程序运行时间久会自动崩。是在windows下运行的项目吗,如果是,去修改一下部署时的启动内存。lunex下还是去改内存试试
装64位的jdk,-xmx设大点
设置如上,感觉就无缘无故断了,自动执行了Run shutdown hook now
且生产都是正常跑的,设置及jar包都是一样的,准生产就出现这个情况,