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.
When
DevServerStart.scaladetects thatInetAddress.getLocalHosttakes longer than 1 second to resolve, a warning is logged:playframework/transport/server/play-server/src/main/scala/play/core/server/DevServerStart.scala
Lines 134 to 142 in 03149e7
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.