Return-Path: Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: (qmail 77409 invoked from network); 28 Nov 2007 08:25:47 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 28 Nov 2007 08:25:47 -0000 Received: (qmail 29098 invoked by uid 500); 28 Nov 2007 08:25:32 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 28921 invoked by uid 500); 28 Nov 2007 08:25:32 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 28910 invoked by uid 99); 28 Nov 2007 08:25:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 00:25:32 -0800 X-ASF-Spam-Status: No, hits=-0.0 required=10.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of jfclere@gmail.com designates 66.249.92.172 as permitted sender) Received: from [66.249.92.172] (HELO ug-out-1314.google.com) (66.249.92.172) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2007 08:25:09 +0000 Received: by ug-out-1314.google.com with SMTP id c2so1489548ugf for ; Wed, 28 Nov 2007 00:25:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; bh=wPhNjxDH8j/tf8Zt+ajMlndjEEv4RYLSHy3KeGiv/20=; b=VmlxyTg6iHagB1nsblNXgpcE6n7douw2VLublrzwIxdNHZeJd2UHL6utihnQ4PKoQnNjtL9uKYRjNM7PItCzNsNLGDCrh+3ixtW4iL3RcX9ZK958WngPqzGVgiThcqeelqHGOB/Urst4KRMLT5LmDUU6hFQ8VXds2fTrXz2HYJA= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=received:message-id:date:from:user-agent:mime-version:to:cc:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=r78I6eXfU2xN0QlZKWFT94YcmbCzb2xf7wHPAhw4LpY88GCjs/d8c9/oWuqzayhAQXp9JXn7sqXAZxtuCWkAMKyvVCjlmAh9NxesTkZNr6LaNVZy6l8cPWedcLz9mOb8wGgVBuFB2T4F+AvC2kipib32WEHKgccznEfDb4V9UhM= Received: by 10.67.26.11 with SMTP id d11mr520659ugj.1196238310720; Wed, 28 Nov 2007 00:25:10 -0800 (PST) Received: from ?192.168.4.143? ( [212.249.12.130]) by mx.google.com with ESMTPS id m38sm2925364ugd.2007.11.28.00.25.07 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 28 Nov 2007 00:25:09 -0800 (PST) Message-ID: <474D2502.5000307@gmail.com> Date: Wed, 28 Nov 2007 09:21:22 +0100 From: jean-frederic clere User-Agent: Thunderbird 2.0.0.9 (X11/20071115) MIME-Version: 1.0 To: Tomcat Developers List CC: Rainer Jung , larry@vringo.com Subject: Re: FW: Delays in mod_jk References: <8047D95BD0D56147BDF0419B56B8E0D08496C8@thing2.vringo.corp> In-Reply-To: <8047D95BD0D56147BDF0419B56B8E0D08496C8@thing2.vringo.corp> X-Enigmail-Version: 0.95.5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Larry Reisler wrote: > Rainer -- > > I recently changed replaced the version of JBOSS Web we were using to JBOSSWEB_2_0_0_GA_CP04. It included several patches to the AJP code. That appears to have solved the problem. The FIN packets from the back end come back immediately now. I'm guessing that the fix to JBPAPP-366 (http://jira.jboss.org/jira/browse/JBPAPP-366) fixed this too. > > I still see the mod_jk architecture as problematic JBPAPP-366 is http://svn.apache.org/viewvc?rev=589062&view=rev that was a bug in the JAVA part not in mod_jk. Cheers Jean-Frederic > -- it would be better if cleaning up the sockets would occur on a different thread and without the critical section locked. > > Larry > > -----Original Message----- > From: Larry Reisler [mailto:larry@vringo.com] > Sent: Monday, November 26, 2007 10:08 AM > To: Rainer Jung; Tomcat Developers List > Subject: RE: Delays in mod_jk > > Rainer -- > > I am using out of the box JBOSS 4.21 -- no special connector, and no firewall between the httpd tier and the other tier. > > Indeed, I agree that the FIN packet from the back end is missing. It seems to come much later in the dump (exactly 4 minutes later). I can't help but think this is an issue on the JBOSS side, but I'm not sure where to go to try to debug that. > > I will send you the full capture file separately by private Mail. > > Larry > > > -----Original Message----- > From: Rainer Jung [mailto:rainer.jung@kippdata.de] > Sent: Sunday, November 25, 2007 4:35 PM > To: Tomcat Developers List > Subject: Re: Delays in mod_jk > > Hi Larry, > > I'm again investigating your problem report concerning 2 second pauses > during socket shutdown in JK maintenance. Sorry for the long pause, but > I want to see, if there is something we need to fix before 1.2.26 > related to this case. > > I couldn't reproduce the behaviour on Linux. Do you use a special > connector for AJP in JBoss, like Tomcats APR connector, or is it just > the plain Coyote connector? Is there a firewall in between httpd and > JBoss? If so, would it be possible to sniff again on both sides? > > Larry Reisler wrote: >> I got a trace using some of the settings you have below. I'm not >> quite sure how to get the whole thing to you, as it is fairly large, >> and I don't wish to post it to the mailing list. > > If you like, you can send it by private Mail. > >> In any event the relevant lines from one example of an interaction I >> am attaching below. 10.45.3.22 is the apache 2.2 server and >> 10.45.3.21 and 10.45.3.24 are the tomcat servers. The trace was >> taken from the apache server. There are numerous other examples of >> this type of interaction. >> >> 02:49:04.329952 IP 10.45.3.22.34977 > 10.45.3.21.8009: F >> 2991069804:2991069804(0) ack 1909717451 win 8244 > 865633671 2700468480> 02:49:04.370343 IP 10.45.3.21.8009 > >> 10.45.3.22.34977: . ack 1 win 1448 > 865633671> 02:49:06.329558 IP 10.45.3.22.34972 > 10.45.3.24.8009: F >> 2991428814:2991428814(0) ack 330342931 win 4624 > 865635671 4202573488> 02:49:06.369533 IP 10.45.3.24.8009 > >> 10.45.3.22.34972: . ack 1 win 2269 > 865635671> 02:49:08.329843 IP 10.45.3.22.35008 > 10.45.3.24.8009: S >> 3372523679:3372523679(0) win 5840 > 865637671 0,nop,wscale 2> 02:49:08.329961 IP 10.45.3.24.8009 > >> 10.45.3.22.35008: S 707449532:707449532(0) ack 3372523680 win 5792 >> >> 02:49:08.329972 IP 10.45.3.22.35008 > 10.45.3.24.8009: . ack 1 win >> 1460 02:49:08.330001 IP >> 10.45.3.22.35008 > 10.45.3.24.8009: P 1:821(820) ack 1 win 1460 >> 02:49:08.330023 IP >> 10.45.3.22.35008 > 10.45.3.24.8009: P 821:921(100) ack 1 win 1460 >> >> >> My analysis of this is as follows: 1) A request comes in to the >> apache server, which has two timed out socket connections to the >> tomcat servers on ports 34977 and 34972. At 02:49:04.329952 it sends >> a FIN packet to the tomcat server and receives a response at >> 02:49:04.370343. It then waits two seconds from the time it sent the >> FIN packet. 2) At 02:49:06.329558 it sends a FIN packet to the other >> tomcat server and receives a response at 02:49:06.369533. It then >> waits two seconds from the time it sent the FIN packet, and then >> creates a new socket (35008) on which it successfully sends the >> transaction. > > The tcpdump excerpt seems to be incomplete. After the FIN and the > accompanying ACK, the final FIN/ACK from the backend is missing. Does it > occur later in the dump? If not, there should be a RST or the connection > should still be in CLOSE_WAIT on the JBoss machine. > > Regards, > > Rainer > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org