How can I fix poor Java performance caused by Mojave update 10.14.6?
I found the answer on a different Stack Exchange site:  https://stackoverflow.com/questions/39636792/jvm-takes-a-long-time-to-resolve-ip-address-for-localhost


Run the hostname command to get the computer's hostname.
Add two new entries to the /etc/hosts file, as shown below.  (Replace {hostname} with the output from the hostname command.)


127.0.0.1   {hostname}
::1         {hostname}