Carter Kozak created LOG4J2-2752:
------------------------------------
Summary: Reduce memory overhead using thread locals with
non-reusable messages
Key: LOG4J2-2752
URL: https://issues.apache.org/jira/browse/LOG4J2-2752
Project: Log4j 2
Issue Type: Improvement
Affects Versions: 2.13.0
Reporter: Carter Kozak
Using ParameterizedMessageFactory (non-reusable) with thread locals for
asynchronous logging results in unused object parameter arrays and empty
StringBuilder buffers.
We can update RingBufferLogEvent and MutableLogEvent to create both the
StringBuilder buffer and parameter array lazily in order to avoid the memory
overhead entirely when reusable messages are not used.
--
This message was sent by Atlassian Jira
(v8.3.4#803005)