On 13/06/2016 19:21, Niranjan Babu Bommu wrote:
> Hi All,
> 
> I have an issue with tomcat dns cache ttl,

That simply is not possible. Tomcat doesn't cache DNS entries.

> where if I change the IP address
> of the database, tomcat still sending connection requests to an old IP
> until I restart tomcat,

Now that sounds like a better start to the problem description. You are
going to need to expand on that. A lot.

Tomcat doesn't use a database by default so is this really a Tomcat
issue or an application issue? How is the database configured? Is
connection pooling being used? How are you confirming connection
requests are being directed to the old IP address? Define "restart Tomcat".

Mark

> this is not the case with Jboss. I verified in java
> security, this what we have in java.
> 
> #networkaddress.cache.ttl=-1
> 
> since this property has been disabled, by default ttl will be 30 sec, jboss
> 7 is respecting this value, but not tomcat.
> 
> so far I have tried these things in tomcat.
> 
> https://bz.apache.org/bugzilla/show_bug.cgi?id=33226
> 
> neither of these settings is not working in tomcat
> 
> -Dnetworkaddress.cache.ttl=0 or -Dsun.net.inetaddr.ttl=0
> 
> 
> java version "1.7.0_60"
> tomcat-7.0.56
> os centos 6.
> 
> can someone please help me out to fix this issue
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to