vy commented on issue #3569: URL: https://github.com/apache/logging-log4j2/issues/3569#issuecomment-2754143185
> If the `ThreadContextMap` is in GC-free mode the maps that contain context data never shrink. Should there be a configuration option to shrink them, when they are cleared? @ppkarwasz, keeping the TCM size under a certain threshold sounds like a good thing, similar to what we do with `StringBuilder`s using `StringBuilders::trimToMaxSize` and the `log4j.layoutStringBuilder.maxSize` property. The brutal truth is, as I stated earlier a couple of times, TCM really needs a rewrite. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: notifications-unsubscr...@logging.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org