https://issues.apache.org/bugzilla/show_bug.cgi?id=53345
--- Comment #9 from Mallikarjun Channappagoudar <mallikarjun.channappagou...@bcbsma.com> --- (In reply to comment #8) > OK then this will cause the trouble. > > Basically MDC puts its values to ThreadLocalMap: > http://svn.apache.org/repos/asf/logging/log4j/trunk/src/main/java/org/apache/ > log4j/MDC.java > > It seems that your thread is putting so much values that at some point of > time the memory is full. To prevent this, you need to clean up MDC like for > example: > > try { > MDC.put(myKey); > chain.doFilter(request, response); > } finally { > MDC.remove(myKey); > } > > Or you can clear the whole MDC with: MDC.clear(); > > it would be nice if you would try that out and let us know if your issue is > solved then. > > Thanks! Thanks for your blazing fast responses. We will incorporate the suggested changes and let you know of the outcome. -- You are receiving this mail because: You are the assignee for the bug. --------------------------------------------------------------------- To unsubscribe, e-mail: log4j-dev-unsubscr...@logging.apache.org For additional commands, e-mail: log4j-dev-h...@logging.apache.org