If it takes the lookup service a long time to start itself (when running the agent or unit test) you probably need to set the preferIPv4Stack system property.
export JAVA_OPTIONS=java.net.preferIPv4Stack=true
and then start the agent or run your unit test.
See more:
https://docs.oracle.com/javase/7/docs/api/java/net/doc-files/net-properties.html
↧