logging-log4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 53345] OutOfMemory Error from Appender
Date Mon, 04 Jun 2012 14:41:55 GMT
https://issues.apache.org/bugzilla/show_bug.cgi?id=53345

--- Comment #9 from Mallikarjun Channappagoudar <mallikarjun.channappagoudar@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-unsubscribe@logging.apache.org
For additional commands, e-mail: log4j-dev-help@logging.apache.org


Mime
View raw message