tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Schnitzer, Jeff" <JSchnit...@maxis.com>
Subject RE: JVM or tomcat aggressive caching DNS lookups?
Date Sun, 08 Dec 2002 21:08:16 GMT
I had to deal with this last week.  Here's the important bit of
documentation:

http://java.sun.com/j2se/1.4.1/docs/api/java/net/InetAddress.html

Jeff Schnitzer
jschnitzer@maxis.com
The Sims Online


> -----Original Message-----
> From: Aditya [mailto:aditya@grot.org]
> Sent: Saturday, December 07, 2002 6:28 PM
> To: tomcat-user@jakarta.apache.org
> Subject: JVM or tomcat aggressive caching DNS lookups?
> 
> This seems to be a problem with the JVM, but since I only run into it
in
> long
> running programs like Tomcat, I'm asking here -- it seems that in an
JSP,
> if
> I'm using URLConnection to retrieve a remote webpage, the IP address
that
> is
> obtained when doing the lookup in URLConnection persists for the life
of
> Tomcat/JVM even past the ttl for that record. For example:
> 
> - www.foo.com resolves to 1.2.3.4 with a ttl of 15 minutes
> 
> - 30 minutes later, if I look up www.foo.com, it's still 1.2.3.4
though in
> the
> meantime I've updated it to 4.5.6.7
> 
> Is there a way to force the JVM internal DNS cache to be flushed?
> 
> Thanks,
> Adi
> 
> --
> To unsubscribe, e-mail:   <mailto:tomcat-user-
> unsubscribe@jakarta.apache.org>
> For additional commands, e-mail: <mailto:tomcat-user-
> help@jakarta.apache.org>
> 


--
To unsubscribe, e-mail:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>


Mime
View raw message