Description of problem: Log4j1.2 causes a memory leak when using the NDC which is set per thread. This should be a rather trivial leak unless a large amount of threads are destroyed and created which can happen for production over a long period of time possibly. The reason CI saw it was because these threads were shared in the same process as multiple servers were started and stopped so they continually added up. Version-Release number of selected component (if applicable): How reproducible: Steps to Reproduce: 1. 2. 3. Actual results: Expected results: Additional info:
Note the leak only occurs when tracing was enabled, so it shouldn't happen normally.
For the record: done in https://github.com/infinispan/jdg/commit/cfd928eb09c1bcc9a039c99ff0bac6d3b68839e6