[logback-dev] MDC/ThreadLocal not being cleared properely?
marcel at frightanic.com
Mon Oct 18 12:57:18 CEST 2010
I'm wondering whether slf4j/logback (potentially) suffers from the same
problems as log4j:
I'd switch from slf4j/log4j to slf4j/logback if this solved the issue.
If you don't want to go through the above referenced posts...
According to Tomcat's (>=6.0.24) "memory leak detection" listener the
log4j MDC has a memory leak: "A web application created a ThreadLocal
with key of type (...) and a value of type (...) but failed to remove it
when the web application was stopped." That's because log4j doesn't
provide something like ThreadLocal#remove.
Marcel Stör, http://www.frightanic.com
O< ascii ribbon campaign - stop html mail - www.asciiribbon.org
More information about the logback-dev