Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 20447 invoked from network); 11 Aug 2010 08:26:01 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 11 Aug 2010 08:26:01 -0000 Received: (qmail 53449 invoked by uid 500); 11 Aug 2010 08:25:58 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 53120 invoked by uid 500); 11 Aug 2010 08:25:54 -0000 Mailing-List: contact users-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Users List" Delivered-To: mailing list users@tomcat.apache.org Received: (qmail 53110 invoked by uid 99); 11 Aug 2010 08:25:53 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 08:25:53 +0000 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: local policy) Received: from [125.17.121.198] (HELO bgxius-ex01.XIUS-bcgi.ltd) (125.17.121.198) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 11 Aug 2010 08:25:48 +0000 Received: from bgxius-ex01.XIUS-bcgi.ltd ([10.193.50.60]) by bgxius-ex01.XIUS-bcgi.ltd ([10.193.50.60]) with mapi; Wed, 11 Aug 2010 13:55:19 +0530 From: Karthik Nanjangude To: Tomcat Users List Date: Wed, 11 Aug 2010 13:55:17 +0530 Subject: RE: 2 POST requests to underlying Server Thread-Topic: 2 POST requests to underlying Server Thread-Index: Acs5LO6TjJbphPz8Q7GVtnXE5cgEoQAAUHdw Message-ID: <22571048298BC44DAF91BE12457E873D8E89CBFF@bgxius-ex01.XIUS-bcgi.ltd> References: <22571048298BC44DAF91BE12457E873D8E89C817@bgxius-ex01.XIUS-bcgi.ltd> <4C612C78.6060705@ice-sa.com> <22571048298BC44DAF91BE12457E873D8E89C92C@bgxius-ex01.XIUS-bcgi.ltd> <4C61354E.4080705@ice-sa.com> <22571048298BC44DAF91BE12457E873D8E89C9A9@bgxius-ex01.XIUS-bcgi.ltd> <22571048298BC44DAF91BE12457E873D8E89CA06@bgxius-ex01.XIUS-bcgi.ltd> <4C617E73.5030002@christopherschultz.net> <22571048298BC44DAF91BE12457E873D8E89CADE@bgxius-ex01.XIUS-bcgi.ltd> <22571048298BC44DAF91BE12457E873D8E89CB0D@bgxius-ex01.XIUS-bcgi.ltd> <22571048298BC44DAF91BE12457E873D8E89CB4B@bgxius-ex01.XIUS-bcgi.ltd> <4C625B31.8050708@pidster.com> In-Reply-To: <4C625B31.8050708@pidster.com> Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 Hi >> #1 I'm not sure the JavaScript you posted will work in all browsers. Absolutely Correct the Application is limited to usage of 2 browsers Via Br= owser Filter [ IE 7+ ot FF3+ ] Tests carried out from the same. >>#2 These two requests are around 12 seconds apart. Perform exactly the = same test at least 10 more times and report what the period between the pai= r of requests is. The sample give was 1 out of 6 times done on the same day >>#3 I can't see from the trace above what the resource type is, but if it= 's a PDF for example, the browser (+plugin) may be attempting to open multiple connections with different byte ranges. This process does not use any Plugin, it just sends the info to underlying= Business Layer and finally on to DataBase. With regards karthik -----Original Message----- From: Pid [mailto:pid@pidster.com] Sent: Wednesday, August 11, 2010 1:41 PM To: Tomcat Users List Subject: Re: 2 POST requests to underlying Server On 11/08/2010 07:08, Karthik Nanjangude wrote: > Hi > > Ok I have copied the wire shark test samples for the 2 Post Requests [ Ap= ache to JBOSS (Tomcat Internal )..This was taken Aug 9, 2010 > > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~ > 1nd Post Request > > No. Time Source Destination Protocol = Info > 10022 30.516874 10.151.41.160 10.151.41.163 TCP = 33403 > 8109 [PSH, ACK] Seq=3D2079 Ack=3D4544 Win=3D15600 Len=3D65 TSV=3D22= 65749122 TSER=3D2977204079 > > Frame 10022 (131 bytes on wire, 131 bytes captured) > Arrival Time: Aug 9, 2010 15:30:35.485640000 > Data (65 bytes) > > 0000 12 34 00 3d 00 3b 73 69 6d 3d 38 39 36 30 31 39 .4.=3D.;sim=3D896= 019 > 0010 39 39 30 30 32 30 34 32 36 33 37 35 26 63 61 6e 990020426375&can > 0020 6d 73 69 73 64 6e 3d 31 30 35 32 37 37 37 37 37 msisdn=3D10527777= 7 > 0030 26 61 63 63 6f 75 6e 74 69 64 3d 36 37 39 37 35 &accountid=3D6797= 5 > 0040 31 1 > Data: 1234003D003B73696D3D3839363031393939303032303432... > [Length: 65] > > > > ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~= ~~ > 2nd Post Request > > No. Time Source Destination Protocol = Info > 15548 42.619208 10.151.41.160 10.151.41.163 TCP = 33418 > 8109 [PSH, ACK] Seq=3D1075 Ack=3D6 Win=3D5840 Len=3D65 TSV=3D226576= 1224 TSER=3D2977216182 > > Frame 15548 (131 bytes on wire, 131 bytes captured) > Arrival Time: Aug 9, 2010 15:30:47.587974000 > 0000 12 34 00 3d 00 3b 73 69 6d 3d 38 39 36 30 31 39 .4.=3D.;sim=3D896= 019 > 0010 39 39 30 30 32 30 34 32 36 33 37 35 26 63 61 6e 990020426375&can > 0020 6d 73 69 73 64 6e 3d 31 30 35 32 37 37 37 37 37 msisdn=3D10527777= 7 > 0030 26 61 63 63 6f 75 6e 74 69 64 3d 36 37 39 37 35 &accountid=3D6797= 5 > 0040 31 1 > Data: 1234003D003B73696D3D3839363031393939303032303432... > [Length: 65] #1 I'm not sure the JavaScript you posted will work in all browsers. #2 These two requests are around 12 seconds apart. Perform exactly the same test at least 10 more times and report what the period between the pair of requests is. #3 I can't see from the trace above what the resource type is, but if it's a PDF for example, the browser (+plugin) may be attempting to open multiple connections with different byte ranges. p > -----Original Message----- > From: Karthik Nanjangude [mailto:karthik.nanjangude@xius-bcgi.com] > Sent: Wednesday, August 11, 2010 11:03 AM > To: Tomcat Users List > Subject: RE: 2 POST requests to underlying Server > > Hi > >>> wireshark or tcpdump running on the external + internal segments simult= aneously. > > I can provide u the tcp dump samples which we used to validate using Whit= e shark. > > > Of course I need some time (probably by EOD ) to get permission from my a= uthorities for the same. > > Is this ok with u > > > With regards > KArthik > > -----Original Message----- > From: Hassan Schroeder [mailto:hassan.schroeder@gmail.com] > Sent: Wednesday, August 11, 2010 10:49 AM > To: Tomcat Users List > Subject: Re: 2 POST requests to underlying Server > > On Tue, Aug 10, 2010 at 10:07 PM, Karthik Nanjangude > wrote: > >> The same test performed on the Internal IP (http:///ABCD), and = was observed that the single Post request was observed with single Insertio= n to DB ... compared to 2 POST request via External IO ( http://ABCD.com ) >> >> So how does this prove that the JavaScript as stated below is not workin= g .... :( > > Forget the browser and the JavaScript -- reproduce the problem using > wget or curl or something basic to initiate your request, with wireshark > or tcpdump running on the external + internal segments simultaneously. > > Then you'll have some interesting data :-) > -- > Hassan Schroeder ------------------------ hassan.schroeder@gmail.com > twitter: @hassan > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org > For additional commands, e-mail: users-help@tomcat.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org