Return-Path: Delivered-To: apmail-httpd-users-archive@www.apache.org Received: (qmail 97067 invoked from network); 11 Mar 2008 14:43:11 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 11 Mar 2008 14:43:11 -0000 Received: (qmail 93348 invoked by uid 500); 11 Mar 2008 14:42:58 -0000 Delivered-To: apmail-httpd-users-archive@httpd.apache.org Received: (qmail 93332 invoked by uid 500); 11 Mar 2008 14:42:58 -0000 Mailing-List: contact users-help@httpd.apache.org; run by ezmlm Precedence: bulk Reply-To: users@httpd.apache.org list-help: list-unsubscribe: List-Post: List-Id: Delivered-To: mailing list users@httpd.apache.org Received: (qmail 93321 invoked by uid 99); 11 Mar 2008 14:42:58 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 07:42:58 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=NORMAL_HTTP_TO_IP,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [72.14.204.239] (HELO qb-out-0506.google.com) (72.14.204.239) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 11 Mar 2008 14:42:19 +0000 Received: by qb-out-0506.google.com with SMTP id c8so2228405qbc.4 for ; Tue, 11 Mar 2008 07:42:28 -0700 (PDT) Received: by 10.141.67.21 with SMTP id u21mr4284769rvk.222.1205246545865; Tue, 11 Mar 2008 07:42:25 -0700 (PDT) Received: from localhost.localdomain ( [121.246.205.20]) by mx.google.com with ESMTPS id s54sm3007487rnb.14.2008.03.11.07.42.23 (version=TLSv1/SSLv3 cipher=OTHER); Tue, 11 Mar 2008 07:42:25 -0700 (PDT) Date: Tue, 11 Mar 2008 20:12:03 +0530 From: Nilesh Govindrajan To: users@httpd.apache.org Message-ID: <20080311201203.67c85146@itech7.com> In-Reply-To: <1205246376.21547.36.camel@stjwks02.uk.ratedpeople> References: <143FC8C21CC4B34F8CFC1B180052ABEC896588@usdawexmb1.infor.com> <20080311194847.3a9a8d63@itech7.com> <1205246376.21547.36.camel@stjwks02.uk.ratedpeople> X-Mailer: Claws Mail 3.3.1 (GTK+ 2.12.5; i386-redhat-linux-gnu) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Subject: Re: [users@httpd] Access is slow when accessed by IP address instead of 'localhost' On Tue, 11 Mar 2008 14:39:36 +0000 David Cassidy wrote: > Nilesh > > Check if its doing a reverse lookup. > > you need DNS for that ... > > D > > On Tue, 2008-03-11 at 19:48 +0530, Nilesh Govindrajan wrote: > > On Tue, 11 Mar 2008 09:10:16 -0500 > > "Adam Martin" wrote: > > > > > Dinesh, > > > > > > > > > > > > When I started reading I thought you may be experiencing a delay > > > with the host resolution but when you mentioned that you could > > > access another Tomcat application using the IP Address it doesn't > > > sound like you are. > > > > > > > > > > > > To be sure you may want to add the 192.168.1.2 host to your hosts > > > file on the server and make sure the server is set to resolve > > > names locally before accessing DNS to see if it makes any > > > difference. Other than that I got zip. Good luck. > > > > > > > > > > > > ________________________________ > > > > > > From: Dinesh Kumar [mailto:pdineshk@elitmus.com] > > > Sent: Tuesday, March 11, 2008 6:29 AM > > > To: users@httpd.apache.org > > > Subject: [users@httpd] Access is slow when accessed by IP address > > > instead of 'localhost' > > > > > > > > > > > > Hi all, > > > > > > I'm facing a peculiar problem. My environment is as follows: > > > > > > Apache 2.2.4 > > > mod_jk 1.2.23 > > > Tomcat 6.0.13 > > > > > > When I access the Java application running on Tomcat like this: > > > curl http://localhost/community/forums/list.page, I get a > > > response within 1 second. However, when I access it like this: > > > http://192.168.1.2/community/forums/list.page, the response takes > > > 10 seconds. > > > > > > To be clear, in both the cases I'm accessing the application from > > > the *same* machine that runs httpd/tomcat. I found out about > > > this issue when I tried to access it from another machine on the > > > same LAN, which is how it will be actually accessed when the > > > issue is resolved. I tried to find out what happened when I > > > accessed it from the same machine on which it is running, and > > > found that it behaves similarly as I mentioned above. > > > > > > 192.168.1.2 is on eth0, and eth0 is setup as a trusted device. > > > When I access another Tomcat 6 application running locally like > > > this: curl http://192.168.1.2/recruit/admin, the request is > > > served instantly. > > > > > > The extra time occurs between the following lines of mod_jk.log: > > > > > > [Mon Mar 10 17:03:54 2008] [7071:60304] [debug] > > > ajp_send_request::jk_ajp_common.c (1287): (forum) request body to > > > send 0 > > > - request body to resend 0 > > > [Mon Mar 10 17:04:04 2008] [7071:60304] [debug] > > > ajp_connection_tcp_get_message::jk_ajp_common.c (1043): received > > > from ajp13 pos=0 len=133 max=8192 > > > > > > I thought it was something to do with mod_jk and installed version > > > 1.2.26, but the problem persists. > > > > > > Any pointers would be welcome! > > > > > > Thanks, > > > Dinesh. > > > > > > > According to me, an IP address doesn't need the DNS to resolve > > something. > > > > > --------------------------------------------------------------------- > The official User-To-User support forum of the Apache HTTP Server > Project. See for more > info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org > " from the digest: users-digest-unsubscribe@httpd.apache.org > For additional commands, e-mail: users-help@httpd.apache.org > I am not the guy who has the problem!!! BTW, I know that for Reverse lookups, a DNS is needed. -- Nilesh G India Technologies Administrator www.itech7.com --------------------------------------------------------------------- The official User-To-User support forum of the Apache HTTP Server Project. See for more info. To unsubscribe, e-mail: users-unsubscribe@httpd.apache.org " from the digest: users-digest-unsubscribe@httpd.apache.org For additional commands, e-mail: users-help@httpd.apache.org