Not sure whether there's anyone else still reading this, but just in case.
InetAddress creates an ANY_IF object in its static initialiser (maps to the special address 0.0.0.0 for IP4, or :: for IP6), then tries to retrieve the hostname. This is pointless (this is an invalid address which should not have an associated hostname), introduces unnecessary overhead (as it typically results in a DNS reverse lookup), and in some cases can lead to DNS timeouts.
Details here: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=91583
BR,
Guillermo Rodriguez Garcia
guille.rodriguez@xxxxxxxxx
guille.rodriguez@xxxxxxxxx