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
- is superceded by
-
LOG4J2-1349 Garbage-free ThreadContext map
- Closed
-
LOG4J2-1575 (GC) Store Configuration Properties in List instead of Map to prevent creating temporary iterators
- Closed