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

Make RingBufferLogEvent::mergePropertiesIntoContextMap allocation-free if possible

    XMLWordPrintableJSON

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.5
    • Fix Version/s: None
    • Component/s: Core
    • Labels:
      None

      Description

      RingBufferLogEvent::mergePropertiesIntoContextMap is called in the background (consumer) thread for each event.

      If configuration properties are specified it allocates the following temporary objects:

      • make mutable copy of the ThreadContext map
      • iterator over configuration properties map
      • for config values containing ${} placeholders, call StrSubstitutor.replace (which creates multiple temporary objects)

      (If configuration properties are not specified, no temporary objects are allocated.)

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Unassigned
                Reporter:
                rpopma Remko Popma
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: