Project and Portfolio Management Practitioners Forum
cancel

Has anyone been able to stop Java DNS caching?

Highlighted
bzdafro
Honored Contributor.

Has anyone been able to stop Java DNS caching?

Some of our environments are using DNS aliases. When they fail over, PPM is still caching the old IP addresses. We researched this and believe its due to Java setting. I tried changing networkaddress.cache.ttl to 0, and restarting, but PPM is still caching the information. If I view java.exe in process explorer, I dont see a parameter for -Dsun.net.inetaddr.ttl=0 .

Has anyone run into this and found a solution?

Is there a way I can add "-Dsun.net.inetaddr.ttl=0 " to the startup parameters for java?

http://www.rgagnon.com/javadetails/java-0445.html
2 REPLIES
Jim Esler
Acclaimed Contributor.

Re: Has anyone been able to stop Java DNS caching?

We changed the following directive:

networkaddress.cache.ttl=60

in file /etc/java6/jre/lib/security/java.security. We never tried a value of zero. One minute is a very short cache time and should not impede rollover. PPM does need to be bounced to pick up any changes in this file. Be sure you are changing the file related to the java version that is being used.
bzdafro
Honored Contributor.

Re: Has anyone been able to stop Java DNS caching?

Its working now. I updated the wrong version of Java. Thanks for the suggestion to check that.