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

Defer hostname lookup until first used

Attach filesAttach ScreenshotAdd voteVotersWatch issueWatchersCreate sub-taskLinkCloneUpdate Comment AuthorReplace String in CommentUpdate Comment VisibilityDelete Comments
    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

          This comment will be Viewable by All Users Viewable by All Users
          Cancel

          People

            pkarwasz Piotr Karwasz
            mattsicker Matt Sicker

            Dates

              Created:
              Updated:

              Slack

                Issue deployment