java - Getting Memory Leak Errors on Server Stop (Eclipse, Hibernate, Spring) -


when undeploy wars (stop server on eclipse), following logs. of them pretty suspicious, more worried new worker #x ones too. using hibernate, spring (guice), c3p0 lib connection pools. ideas?

2015-09-20 23:05:04.442 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] registered jdbc driver [com.mysql.jdbc.driver] failed unregister when web application stopped. prevent memory leak, jdbc driver has been forcibly unregistered. 2015-09-20 23:05:04.442 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [forkjoinpool-2-worker-1] has failed stop it. create memory leak. 2015-09-20 23:05:04.443 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [abandoned connection cleanup thread] has failed stop it. create memory leak. 2015-09-20 23:05:04.443 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [java-sdk-http-connection-reaper] has failed stop it. create memory leak. 2015-09-20 23:05:04.443 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [commons-pool-evictiontimer] has failed stop it. create memory leak. 2015-09-20 23:05:04.444 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #1] has failed stop it. create memory leak. 2015-09-20 23:05:04.444 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #2] has failed stop it. create memory leak. 2015-09-20 23:05:04.444 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #3] has failed stop it. create memory leak. 2015-09-20 23:05:04.444 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #4] has failed stop it. create memory leak. 2015-09-20 23:05:04.445 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #5] has failed stop it. create memory leak. 2015-09-20 23:05:04.445 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #6] has failed stop it. create memory leak. 2015-09-20 23:05:04.445 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #7] has failed stop it. create memory leak. 2015-09-20 23:05:04.445 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o worker #8] has failed stop it. create memory leak. 2015-09-20 23:05:04.446 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [new i/o boss #9] has failed stop it. create memory leak. 2015-09-20 23:05:04.446 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] appears have started thread named [timer-0] has failed stop it. create memory leak. 2015-09-20 23:05:04.447 [localhost-startstop-2] [] error o.a.c.loader.webappclassloader - web application [] created threadlocal key of type [com.yammer.metrics.stats.threadlocalrandom$1] (value [com.yammer.metrics.stats.threadlocalrandom$1@78aa124e]) , value of type [com.yammer.metrics.stats.threadlocalrandom] (value [com.yammer.metrics.stats.threadlocalrandom@6597fcc5]) failed remove when web application stopped. threads going renewed on time try , avoid probable memory leak. 

you should using servletcontextlistener listen lifecycle events contextinitialized/contextdestroyed. see here example.


Comments

Popular posts from this blog

java - Date formats difference between yyyy-MM-dd'T'HH:mm:ss and yyyy-MM-dd'T'HH:mm:ssXXX -

c# - Get rid of xmlns attribute when adding node to existing xml -