SYMPTOM

You installed a Runtime on MAC OS, and you notice that Runtime's startup is very slow, as well as executing sessions.

For instance, instead of a few seconds, it takes more than one minute to startup the Runtime, and when executing sessions, it is very slow also.

 

SOLUTION

This may come from an issue on MAC OS where the retrieval of local address from Java is slow which therefore makes every communications with the Runtime when using 'localhost' hostname slow.

To resolve this issue, you can try to add your MAC OS hostname inside the system host file, which in most cases resolve this slow issue if it comes from the resolution of local hostname.

 

Open the /etc/hosts file and update it like this:

127.0.0.1   localhost yourMacHostname
::1         localhost yourMacHostname

 

You can refer to the following articles for further information:

https://stackoverflow.com/questions/33289695/inetaddress-getlocalhost-slow-to-run-30-seconds/33289897#33289897