Java Client Issue timeout

Hi I am facing error using java client it taking more than a sec to connection to aerospike servers(write now we have 2 aws servers in cluster). While connecting to same servers from php-client it take microsecond to connect. are we missing something. AerospikeClient client = new AerospikeClient(host, port); initialisation of client is taking time. Please supervise us.

Regards, Abhishek

There is either a network error or the returned internal IP addresses of aws peers in the cluster are not accessible from your client machine.

Try:

asinfo -h -v services

and then ping the returned IP address from your client machine.