Log4j NDC prevents proper GC of idle threads when using executors for web connector pools
Issue
- We have JBoss configured to use executors for the web connectors. The executors are configured with a
keepalive-timeto remove idle threads. We see a very large amount of threads in the heap, far greater than our configured max-threads. These trace back to a log4j NDC HashTable.
Environment
- JBoss Enterprise Application Platform (EAP) 6
- Apache log4j NDC
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase, tools, and much more.