jsf - Memory leaks in MyFaces -
edit: solution can find in comments below assumes changing jsf implemenetation myfaces sun's mojarra.
hi,
i have got annoying problem myfaces 2.0.0 (to more precisely checked out on 2.0.1 , 2.0.2 , problem remains).
i'm writing application under myfaces. briefly speaking in application use frameworks: spring, hibernate, jsf (myfaces implementation) application container tomcat (6.0.29 version) use maven build , deploy (version 3.0).
the problem when try redeploy application via maven (mvn tomcat:redeploy) tries first undeploy application , deploy again. undeploying never suceed. i've got information:
severe: web application [/adam] created threadlocal key of type [java.lang.threadlocal] (value [java.lang.threadlocal@4b0a4d7c]) , value of type [org.apache.myfaces.config.runtimeconfig] (value org.apache.myfaces.config.runtimeconfig@11652e61]) failed remove when web application stopped. create memory leak.
due error tomcat cannot undeploy application:
info: undeploying context [/adam] 2010-12-02 11:47:46 org.apache.catalina.startup.expandwar deletedir severe: [d:\program files\apache-tomcat-6.0.29\webapps\adam\web-inf\lib] not deleted. presence of remaining files may cause problems 2010-12-02 11:47:46 org.apache.catalina.startup.expandwar deletedir severe: [d:\program files\apache-tomcat-6.0.29\webapps\adam\web-inf] not deleted. presence of remaining files may cause problems 2010-12-02 11:47:46 org.apache.catalina.startup.expandwar deletedir severe: [d:\program files\apache-tomcat-6.0.29\webapps\adam] not deleted. presence of remaining files may cause problems 2010-12-02 11:47:46 org.apache.catalina.startup.expandwar delete severe: [d:\program files\apache-tomcat-6.0.29\webapps\adam] not deleted. presence of remaining files may cause problems 2010-12-02 11:47:49 org.apache.catalina.startup.hostconfig deploydirectory
all of libraries in web-inf\lib , file keep logs log4j cannot deleted.
there connected memory leak library provides elfactoryimpl:
severe: web application [/adam] created threadlocal key of type [null] (value [org.apache.myfaces.el.convert.variableresolvertoelresolver$1@693985fc]) , value of type [java.util.hashset] (value [[]]) failed remove when web application stopped. create memory leak.
how rid of memory leaks ?
i have been looking answer long cannot find solution. found issue on myface's jira: https://issues.apache.org/jira/browse/myfaces-2942 don't know think it. should wait version 2.0.3 ?
i think memory leak el connected first one.
please, me ! ;) can provide more details if needed.
the problem has been reported , fixed. of have 3 options:
live warning message , wait until myfaces guys release fix.
apply proposed patch in current myfaces implementation.
replace myfaces mojarra (the reference implementation) doesn't expose problem.
Comments
Post a Comment