Avoid VPN Latency


When accessing Datameer through VPN, latency increases significantly. This could cause the following error: 

Error Message

[anonymous] WARN [<timestamp>] [ldap-cache-update-operation] (CachedAuthenticatorRepository.java:66) - Updating cached LDAP users and groups failed
org.springframework.ldap.UncategorizedLdapException: Uncategorized exception occured during LDAP processing; nested exception is javax.naming.NamingException: LDAP response read timed out, timeout used:-1ms.


According to LDAP Naming Service Provider, a client is supposed to wait forever if com.sun.jndi.ldap.read.timeout is not explicitly set. Since the error message shows,

LDAP response read timed out, timeout used:-1ms.

it means it's not set.

Validate latency using an LDAP client. By doing this you'll know for sure if the problem is with client or server. 


Set the LDAP timeout.

Also, JDK-8081560 says that a related bug is fixed in JDK 7 update 91, so that's another thing to look into.