Uploaded image for project: 'Log4j 2'
  1. Log4j 2
  2. LOG4J2-2795

Make LogManager/LoggerContext creation time reasonable

    XMLWordPrintableJSON

Details

    • Task
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 2.13.0
    • None
    • Core
    • None

    Description

      Currently (2.13), LogManager.getLogger("xxx") takes ~600ms on a cold JVM by itself.

      For a logging framework it is likely way too much (by comparison a CDI test with classpath scanning takes ~50ms).

       

      This ticket is about trying to be faster (maybe by removing java serialization usage and reducing registry usage + reflection of plugins by generating java code?).

      Attachments

        1. image-2020-03-06-08-58-21-169.png
          121 kB
          Romain Manni-Bucau
        2. log4j2.png
          295 kB
          Romain Manni-Bucau

        Issue Links

          Activity

            People

              Unassigned Unassigned
              romain.manni-bucau Romain Manni-Bucau
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated: