Skip to content

No-longer-valid external website logged when slow localhost resolution #12866

@mjustin

Description

@mjustin

When DevServerStart.scala detects that InetAddress.getLocalHost takes longer than 1 second to resolve, a warning is logged:

WARNING: Retrieving local host name ${address} took more than ${startupWarningThreshold}ms, this can create problems at startup
If you are using macOS, see https://thoeni.io/post/macos-sierra-java/ for a potential solution

println(
play.utils.Colors.red(
s"WARNING: Retrieving local host name ${address} took more than ${startupWarningThreshold}ms, this can create problems at startup"
)
)
println(
play.utils.Colors
.red("If you are using macOS, see https://thoeni.io/post/macos-sierra-java/ for a potential solution")
)

However, the URL that is logged (https://thoeni.io/post/macos-sierra-java/) no longer goes to the original article that referenced the solution. Rather, it goes to an Indonesian site that appears to have bought up the domain.

The original page can be seen on the Wayback Machine.

In addition to a brief description of the problem, the linked article links to a Stack Overflow answer that explains how to fix the issue: https://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhost/39698914#39698914

This bad URL should no longer be logged, and should possibly be replaced. If it is replaced, perhaps the Stack Overflow answer would make for a good replacement.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions