Description of problem:
Web app's ModuleClassLoader is not released even after its undeployment. It seems contextMap of org.jboss.logmanager.ClassLoaderLogContextSelector object is holding the class loader's reference. If no logging-profile is configured, it doesn't leak.
Version-Release number of selected component (if applicable):
JBoss LogManager 1.4.0.Final (EAP 6.1.0) and 1.5.1.Final (EAP 6.2.0) as well.
Steps to Reproduce:
contextMap is an object of CopyOnWriteMap. I changed it to CopyOnWriteWeakMap but it didn't help.
I was just working on this as part of https://bugzilla.redhat.com/show_bug.cgi?id=1038305. I just sent a PR for it.
Oh, I'm not aware of it. I'll test the fix tomorrow. Thanks.
Closing as duplicate.
*** This bug has been marked as a duplicate of bug 1038305 ***