Re: Potential memory leak in ParameterizedMessage

2017-04-14 Thread Ralph Goers
I have a feeling that this is similar to other cases where a StringBuilder is being held in a ThreadLocal to avoid having to reallocate objects. The issue is that the buffer is never reduced in size so it can use up a fair amount of memory. Ralph > On Apr 14, 2017, at 8:06 AM, Matt Sicker wro

Re: Potential memory leak in ParameterizedMessage

2017-04-14 Thread Matt Sicker
The subject matter expert in that affected code has been swamped with work, so I'd imagine that's why it hasn't been looked at yet. If you could provide a patch, that should help us get this moving forward, though. On 14 April 2017 at 02:17, Adrien Grand wrote: > Hello, > > While reviewing a hea

Potential memory leak in ParameterizedMessage

2017-04-14 Thread Adrien Grand
Hello, While reviewing a heap dump a couple weeks ago, I found that log4j was using more memory than I would expect, and this turned out to come from a static ThreadLocal in ParameterizedMessage. Could someone look at the following issue? https://issues.apache.org/jira/browse/LOG4J2-1858 Thanks.