Tag

slow startup

0 views collected around this technical thread.

FunTester
FunTester
Mar 31, 2021 · Backend Development

Resolving Slow Java Application Startup on macOS Caused by a JDK getLocalHost Bug

The article describes a macOS JDK bug where calls to java.net.InetAddress.getLocalHost() cause a 5‑second (or longer) delay during application startup, explains the investigation steps, and provides three practical fixes including hosts file modification, interface aliasing, and JDK upgrade.

JDKJava buglog4j2
0 likes · 7 min read
Resolving Slow Java Application Startup on macOS Caused by a JDK getLocalHost Bug