Thanks Kostas,
I'll forward this onto the dCache developers.
Cheers,
Greig
On Thu, 22 Dec 2005, Kostas Georgiou wrote:
> 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
>
--
=======================================================================
Dr Greig A Cowan http://www.ph.ed.ac.uk/~gcowan1
School of Physics, University of Edinburgh, James Clerk Maxwell Building
TIER-2 STORAGE SUPPORT PAGES: http://wiki.gridpp.ac.uk/wiki/Grid_Storage
=======================================================================
|