https://issues.apache.org/bugzilla/show_bug.cgi?id=50486

--- Comment #55 from smarkwal <[email protected]> ---
I don't think that setting tlm = null on shutdown would make a big difference.

When your web application is undeployed, all classes loaded by the web app's
classloader should get unloaded and GC'ed, including the log4j classes. Once
the MDC class has been unloaded, the MDC singleton instance and the ThreadLocal
instance referenced by it should get collected. And once the ThreadLocal
instance is gone, all values stored for worker threads of the application
server may get collected as well.

If you deploy log4j in a way that multiple web applications may share a common
logger hierarchy, you don't want to call shutdown when you undeploy one of the
web applications. A shutdown would affect the other web applications.

Or do I miss something?

-- 
You are receiving this mail because:
You are the assignee for the bug.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to