You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@logging.apache.org by "Carter Kozak (JIRA)" <ji...@apache.org> on 2018/08/14 19:24:00 UTC

[jira] [Created] (LOG4J2-2409) Mixed async loggers should not fully initialize ThrowableProxy unless it is used

Carter Kozak created LOG4J2-2409:
------------------------------------

             Summary: Mixed async loggers should not fully initialize ThrowableProxy unless it is used
                 Key: LOG4J2-2409
                 URL: https://issues.apache.org/jira/browse/LOG4J2-2409
             Project: Log4j 2
          Issue Type: Sub-task
          Components: Core
    Affects Versions: 2.11.1
            Reporter: Carter Kozak


Mixed async loggers pay the full cost for the extended stack trace regardless of whether it's used in the pattern. This involves class loading for each stack frame, which is heavily dependent on the runtime environment, and is generally several times slower than writing the raw stack trace, even with disk IO taken into account.

Fixing LOG4J2-2407 will cause the same issue for fully async loggers unless we implement deferred initialization.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)