On 07/07/2010 15:08, mmg wrote: > > Hello, > > I've recently deployed an application on our Linux staging server; a Tomcat > 5.5.28 server on Java 1.5.0_09-b01. At some point, the application makes a > call to request.getLocalName(). For some reason, this call takes a very long > time (about 20 seconds!). I profiled the application, and I see that tomcat > calls InetAddress.getHostName() in turn. This performs a reverse DNS lookup. > It's this reverse DNS lookup that takes so long (since our host doesn't have > a DNS address the resolve fails). > > Is there a way to disable this reverse DNS lookup in Tomcat or is there > anything else I can do to speed this up?
It's nothing to do with Tomcat. There are JVM settings which apply to networking & DNS lookups. You might be affected by these, depending on your system configuration. http://java.sun.com/j2se/1.5.0/docs/guide/net/properties.html p
signature.asc
Description: OpenPGP digital signature