GitHub user deepblueli created a discussion: New date & time formatter is not 
garbage free

Hi, 

I am running log4j2 in garbage free mode: 
https://logging.apache.org/log4j/2.x/manual/garbagefree.html 
However, after upgraded to latest 2.25.4, I see garbage created by log4j that's 
not seen before, seems to be due to new date time formatter. 
After I added system property -Dlog4j2.instantFormatter=legacy then it goes 
away. 

If garbage is expected in new date time formatter, I would suggest to update 
garbagefree manual page to include this setting to use legacy date time 
formatter. 

Thanks.



GitHub link: https://github.com/apache/logging-log4j2/discussions/4091

----
This is an automatically sent email for [email protected].
To unsubscribe, please send an email to: [email protected]

Reply via email to