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

Defer hostname lookup until first used

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • None
    • Configuration
    • None

    Description

      The initial lookup of the local hostname adds unnecessary overhead to startup time when a configuration doesn't reference it. This can be especially egregious if Java is unable to figure out the local hostname without performing a DNS lookup.

      The hostname lookup should be deferred until it's needed. This should help reduce startup time.

      Attachments

        Issue Links

          Activity

            People

              pkarwasz Piotr Karwasz
              mattsicker Matt Sicker
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated: