lucene-solr-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Yonik Seeley <yo...@lucidimagination.com>
Subject Re: admin pages can be slow because of reverse DNS - should we fix?
Date Mon, 19 Oct 2009 20:12:45 GMT
On Mon, Oct 19, 2009 at 4:08 PM, Chris Hostetter
<hossman_lucene@fucit.org> wrote:
>
> I've noticed recently that when i test things on my mac, the admin console
> pages are really slow ... working on the stats page, i realized that there
> was a 10 second built in delay on *every* admin page, and i traced it to
> these lines in _info.jsp ...
>
>  InetAddress addr = null;
>  String hostname = "unknown";
>  try {
>    addr = InetAddress.getLocalHost();
>    hostname = addr.getCanonicalHostName();
>  } catch (UnknownHostException e) {
>    //default to unknown
>  }
>
> ...on every page load it's trying to do a reverse DNS lookup so it can
> display the current hostname in the admin header, and that reverse DNS is
> (evidently) timing out on my dev box.
>
> The question i have: should we...
>
> a) leave this alone (ie: it's my fault for using an IP that can't be
> resolved to a name)
>
> b) change it so it's done once on startup in a static block (ie: he info is
> useful, but not likely to change so only pay the cost once)
>
>
> ...thoughts?

+1 for option (b)
It looks like we're on hold for a real 1.4 RC until tomorrow at a
minimum (basically until Lucene 2.9.1 has a RC I think).

-Yonik
http://www.lucidimagination.com

Mime
View raw message