You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@felix.apache.org by Sinkov Vladimir <vl...@gmail.com> on 2015/03/03 12:20:24 UTC

Memory leak while redeploying application with Apache Felix in it

Hello

I have web application which has Apache Felix running in it, and it is
running under Tomcat 7.
While redeploying web application I get the following warning

SEVERE: The web application [/] created a ThreadLocal with key of type
[org.apache.felix.framework.util.SecureAc
tion$1] (value [org.apache.felix.framework.util.SecureAction$1@62775bb1])
and a value of type [org.apache.felix.framework.ut
il.SecureAction.Actions] (value
[org.apache.felix.framework.util.SecureAction$Actions@70f8c2e1]) 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.

I've investigated and I see
that org.apache.felix.framework.util.SecureAction has ThreadLocal field
m_actions and looks like it causes class not being able to unload.

Could you please advice something?
Maybe I'm need to do additional steps to stop the Framework instead of
Framework.stop(); Framework.waitForStop(0)

Thanks!