You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Remko Popma (JIRA)" <ji...@apache.org> on 2018/10/11 14:32:00 UTC

[jira] [Commented] (LOG4J2-2475) Limit reusable event.clear parameter clearing to argsCount

    [ https://issues.apache.org/jira/browse/LOG4J2-2475?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16646498#comment-16646498 ] 

Remko Popma commented on LOG4J2-2475:
-------------------------------------

Won’t this introduce memory leaks when the objects in at the end of the array are not being cleared, so they can’t be garbage collected?

> Limit reusable event.clear parameter clearing to argsCount
> ----------------------------------------------------------
>
>                 Key: LOG4J2-2475
>                 URL: https://issues.apache.org/jira/browse/LOG4J2-2475
>             Project: Log4j 2
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Carter Kozak
>            Assignee: Carter Kozak
>            Priority: Major
>
> Larger parameter arrays may make their way into log4j when passed into the logger directly. These may take longer to clear, despite only containing one or two parameters.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)