Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2352

Reusable event message mementos should be cached

VotersStop watchingWatchersLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.0.0, 2.11.1
    • Component/s: Core
    • Labels:
      None

      Description

      When multiple AsyncAppenders are configured, we invoke MutableLogEvent.memento (or RingBufferLogEvent.memento) for each one, allocating multiple formatted strings.

      On the first invocation, we can set the event message to the new MementoMessage to avoid re-allocations.

        Attachments

          Activity

            People

            • Assignee:
              ckozak Carter Kozak
              Reporter:
              ckozak Carter Kozak

              Dates

              • Created:
                Updated:
                Resolved:

                Issue deployment