There are various optimizations in Log4j depending on thread locals,
including garbage-free context map implementations. Thread locals are known
to not get along well with applications running a relatively high number of
threads. For one, servlet containers (Tomcat, JBoss, etc.) is a good
example of that. Further, as Remko remarked, garbage-free implementations
might perform worse – depending on the context, IMO.

On Wed, Aug 4, 2021 at 10:44 PM Joshua S <joshua.spoe...@gmail.com> wrote:

> Why isn't garbagefreeThreadContextMap enabled by default?
>
> That is, does it have any disadvantages?
>

Reply via email to