Skip to content

Commit 73221e9

Browse files
Add recommended TTL value
1 parent 3962155 commit 73221e9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/storage/blobs/storage-blob-java-get-started.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -180,12 +180,12 @@ For information about how to obtain account keys and best practice guidelines fo
180180

181181
## Configure the JVM TTL for DNS name lookups
182182

183-
The Java Virtual Machine (JVM) caches responses from successful DNS name lookups for a specified period of time, known as time-to-live (TTL). The default TTL value for many JVMs is `-1`, which means that the JVM caches the response indefinitely, or until the JVM is restarted. Because Azure resources use DNS name entries that can change, we recommend that you set the JVM TTL value to X seconds. This configuration ensures that an updated IP address for a resource is returned with the next DNS query.
183+
The Java Virtual Machine (JVM) caches responses from successful DNS name lookups for a specified period of time, known as time-to-live (TTL). The default TTL value for many JVMs is `-1`, which means that the JVM caches the response indefinitely, or until the JVM is restarted. Because Azure resources use DNS name entries that can change, we recommend that you set the JVM TTL value to 10 seconds. This configuration ensures that an updated IP address for a resource is returned with the next DNS query.
184184

185185
To change the TTL value globally for all applications using the JVM, set the `networkaddress.cache.ttl` property in the `java.security` file.
186186

187187
```plaintext
188-
networkaddress.cache.ttl=X
188+
networkaddress.cache.ttl=10
189189
```
190190

191191
For Java 8, the `java.security` file is located in the `$JAVA_HOME/jre/lib/security` directory. For Java 11 and higher, the file is located in the `$JAVA_HOME/conf/security` directory.

0 commit comments

Comments
 (0)