Thanks for your suggestion. I will ask the system admin to add this entry. The ip address is 69.90.208.57
awarnier wrote: > > 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? >> > Have you tried putting a specific entry in your local /etc/hosts file, > which will match > what the lookup is looking for ? > (what is the IP address by the way ?) > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org > For additional commands, e-mail: users-h...@tomcat.apache.org > > > -- View this message in context: http://old.nabble.com/Very-slow-HttpServletRequest.getLocalName%28%29-tp29096652p29096953.html Sent from the Tomcat - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org For additional commands, e-mail: users-h...@tomcat.apache.org