Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
2.17.2
-
None
Description
We've found services running 2.17.2 to be slower than 2.17.1. A heat map indicates a StackWalker in log4j.
I found that the code that Logger plugin calls into has changed. In 2.17.1 the default config for includeLocation is based only on the configured value. In 2.17.2 it's based on the config value if present, but then defaults to !(context instanceof AsyncLoggerContext).
Since none of our Logger elements declare includeLocation - the default behavior has changed causing all LogEvents to include their location.
Attachments
Attachments
Issue Links
- is related to
-
LOG4J2-3491 High cpu, due to a change that cause to includeLocation by default for AsyncLogger
- Resolved