« Drummond Reed on XRI and Identity | Main | My Backup Script on OS X »
Java and IP Addresses
A few weeks ago, I cut over my blog and several other Web sites to a new, much fast server. I don’t know that it’s made much difference in how fast people retrieve my blog since it’s mostly static, but it’s made a great deal of difference to me in posting speed and other back office functions.
What’s been curious to me is that the old server continues to get a few hits. I did a little exploring today and discovered a few interesting things.
First, all of the hits are for RSS feeds of one kind of another.
Second, all of the clients still hitting the old server are implemented in Java. Here’s a list (from the user-agent data in the log): Rome, Jakarta Commons-HttpClient, Java/1.5.0_06, and knLiveJava/3.0.
Can someone explain this to me? Is there a bug in some Java library that caches IP addresses for too long or is this just coincidence?
Posted by windley on April 4, 2007 3:32 PM



Comment from Michael Neale at April 4, 2007 5:08 PM
Not sure about that specifically, but the URL class in java does to evil things at least when doing an equality check:
http://java.sun.com/j2se/1.4.2/docs/api/java/net/URL.html#equals(java.lang.Object)
It would not surprise me that there is some other caching going on.
Comment from Jason Shao at April 4, 2007 10:04 PM
Heh, By default, the JVM caches IP addresses err... **forever**. Similarly to the way that URLConnections will wait... forever... seems to be a trend, or the platform convention. A lot of people never change the defaults though...
Comment from SearchFull at April 4, 2007 11:35 PM
you can read this:Disable DNS caching
http://www.searchfull.net/blog/2007/01/22/1169462290428.html
Leave a comment
I encourage you to leave a comment below. Your email address will not be displayed on Technometria, but allows me to communicate with you directly. Your email address won't be displayed, but will be used to compute a MicroID for your comment.