Security Properties File
The /xl-release-server-home/conf/security.properties file lets you override some of the default JVM settings based on your requirements. For example, you can override the default JVM values for parameters such as the networkaddress.cache.ttl, networkaddress.cache.negative.ttl.
Configuring the DNS Time-to-Live (TTL)
The Release Java Virtual Machine (JVM) implements DNS caching to optimize hostname resolution performance. When the JVM resolves a hostname to an IP address, it stores this resolution in a cache for a configurable period, known as the Time-to-Live (TTL).
To improve network performance, you can adjust the TTL value for DNS caching.
- Open the
/xl-release-server-home/conf/security.propertiesfile in an editor. - Add the
networkaddress.cache.ttlproperty (default value is 30 seconds) to thesecurity.propertiesfile.
networkaddress.cache.ttl=30
TTL Values
- Setting TTL to
-1configures permanent caching - Setting TTL to
0disables caching entirely - Any positive value represents the cache duration in seconds
- Save the
security.propertiesfile.