Print

Print


Hi,

I just noticed that the new version of dcache uses
-Dnetworkaddress.cache.ttl=600 in the java command line.

From the java manuals it seems that option will not do
anything at all since it can not be used in the command
line but only in the java.security file.

networkaddress.cache.ttl (default: -1)
  Specified in java.security to indicate the caching policy for successful
  name lookups from the name service.. The value is specified as as integer
  to indicate the number of seconds to cache the successful lookup.
  A value of -1 indicates "cache forever". 
.....
sun.net.inetaddr.ttl
  This is a sun private system property which corresponds to networkaddress.cache.ttl.
  It takes the same value and has the same meaning, but can be set as a command-line
  option. However, the preferred way is to use the security property mentioned above.

The best way to handle the change is at the code level ;P
java.security.Security.setProperty("networkaddress.cache.ttl" , "600");

Cheers,
kostas