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