You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Dzmitry Anikechanka (Jira)" <ji...@apache.org> on 2019/11/18 08:28:00 UTC

[jira] [Created] (LOG4J2-2724) SimpleMessage - message duplication (String and CharSequence fields)

Dzmitry Anikechanka created LOG4J2-2724:
-------------------------------------------

             Summary: SimpleMessage - message duplication (String and CharSequence fields)
                 Key: LOG4J2-2724
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2724
             Project: Log4j 2
          Issue Type: Bug
          Components: API
    Affects Versions: 2.12.1
            Reporter: Dzmitry Anikechanka


org.apache.logging.log4j.message.SimpleMessage class contains 2 fields:
{code:java}
private String message;
private transient CharSequence charSequence; {code}
These 2 fields contains the message that should be logged.

So as the result the message is duplicated and it can cause significant payload on memory in case of logging large messages.

Could you please fix it or explain why the message is duplicated?

Thanks,
Dzmitry



--
This message was sent by Atlassian Jira
(v8.3.4#803005)