Jvm takes a long time to resolve ip-address for localhost
<p>I seem to have a problem with performance of "sbt test" (which includes looking up localhost names/IP addresses) after upgrading to macOS Sierra. On a previous version of OS X it took about 40-50 seconds to finish. macOS Sierra times are much higher than that. Last run I did was around 15 minutes. Compile times are about the same as on 'El Capitan'.</p>

<p>I'm the only one from my team to try this new macOS so I can't tell if it's only happening on my mac or is it a universal issue.</p>

<p>My colleague had a similar issue on Ubuntu and it was related with random number generation slowing down the tests - <a href="https://stackoverflow.com/questions/27173833/slow-service-response-times-java-securerandom-dev-random">Slow service response Times : Java SecureRandom &amp; /dev/random</a></p>

<p>Unfortunately, that didn't work for me. Originally I tried that on JDK 8u54 and then tried updating to JDK 8u102 and that didn't help as well.</p>

<p>P.S. I'm running Macbook Pro Mid-2015 2.8GHz i7, 16GB ram, 1TB SSD.</p>