You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (Jira)" <ji...@apache.org> on 2019/12/30 22:01:00 UTC
[jira] [Created] (LOG4J2-2752) Reduce memory overhead using thread
locals with non-reusable messages
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)