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/31 14:49:00 UTC
[jira] [Resolved] (LOG4J2-2752) Reduce memory overhead using thread
locals with non-reusable messages
[ https://issues.apache.org/jira/browse/LOG4J2-2752?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Carter Kozak resolved LOG4J2-2752.
----------------------------------
Resolution: Fixed
> 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
> Assignee: Carter Kozak
> Priority: Major
> Fix For: 2.13.1
>
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> 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)