How to configure DNS caching using networkaddress.cache.ttl ?
Issue
- The default
Sun Java securitysettings fornetworkaddress.cache.ttl(=-1, cacheforever), which is problematic since some backend services will have theirIPaddress change if a datacenter goes away, and the primaryIPaddress forDNSname has to change. Setting the value to0and require aDNS lookupfor every invocation of the service. What is a recommended value for the TTL ? - What is the
JREcaching policy forJBoss EAP 6with oracleJDK 1.7? Is itforeveror does it time out? If it does time out what is that value ? - Will the JBoss container cause any issues if the
JVMDNS caching was turned off viajava.security.Security.setProperty("networkaddress.cache.ttl","0")?
Environment
- Red Hat JBoss Enterprise Application Platform (EAP)
- 6
- 7
- Oracle Java
- 1.7
- 1.8
- OpenJDK
- 1.7
- 1.8
Subscriber exclusive content
A Red Hat subscription provides unlimited access to our knowledgebase of over 48,000 articles and solutions.
Welcome! Check out the Getting Started with Red Hat page for quick tours and guides for common tasks.
