5

tomcat经常挂掉,过程如下

八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["http-apr-9996"]
八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol pause
信息: Pausing ProtocolHandler ["ajp-apr-8021"]
八月 18, 2016 10:59:13 上午 org.apache.catalina.core.StandardService stopInternal
信息: Stopping service Catalina
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: The web application [/] registered the JDBC driver [com.mysql.fabric.jdbc.FabricMySQLDriver] but failed to unregister it when the web application was stopped. To prevent a memory leak, the JDBC Driver has been forcibly unregistered.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesJdbc
严重: 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.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: The web application [/] appears to have started a thread named [FileWatchdog] but has failed to stop it. This is very likely to create a memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader clearReferencesThreads
严重: 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.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type java.lang.ThreadLocal and a value of type com.yunze.bcpt.service.pay.weixinpay.common.Configure.Account but failed to remove it when the web app
lication was stopped. Threads are going to be renewed over time to try and avoid a probable memory leak.
"/home/tomcat/bcpt/weixin/logs/catalina.out" 710295L, 232929613C 710150,1 99%
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap 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.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.catalina.loader.WebappClassLoader checkThreadLocalMapForLeaks
严重: The web application [/] created a ThreadLocal with key of type com.google.gson.Gson$1 and a value of type java.util.HashMap but failed to remove it when the web application was stopped. Threads are going t
o be renewed over time to try and avoid a probable memory leak.
八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["http-apr-9996"]
八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol stop
信息: Stopping ProtocolHandler ["ajp-apr-8021"]
八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["http-apr-9996"]
八月 18, 2016 10:59:13 上午 org.apache.coyote.AbstractProtocol destroy
信息: Destroying ProtocolHandler ["ajp-apr-8021"]

这个是catlina.out在程序每次挂掉前的输出,没有其他的错误日志

export JAVA_OPTS="-server -Xms650m -Xmx650m -Xmn260m -XX:PermSize=256m -XX:MaxPermSize=256m -Xss256K -XX:+DisableExplicitGC -XX:SurvivorRatio=2 -XX:+UseConcMarkSweepGC -XX:+CMSParallelRemarkEnabled -XX:+UseCMSCompactAtFullCollection -XX:CMSFullGCsBeforeCompaction=1 -XX:
+CMSClassUnloadingEnabled -XX:LargePageSizeInBytes=128M -XX:+UseFastAccessorMethods -XX:+UseCMSInitiatingOccupancyOnly -XX:CMSInitiatingOccupancyFraction=70 -Djava.awt.headless=true -XX:+PrintClassHistogram -XX:+PrintGCDetails -XX:+PrintGCTimeStamps -XX:+PrintHeapAtGC -
Xloggc:/var/log/gc.log -XX:ErrorFile=/var/log/hs_err_pid.log"

多次调试还是会挂,这是目前的JVM参数,同时还运行了另一个tomcat实例,但那一个就不会挂,感谢各位大神指点

查看全部
mayifan0
MMMMMMMMMMemory
2016/08/18 03:43
  • 点赞
  • 收藏
  • 回答
    私信
满意答案
查看全部

5个回复