Return-Path: X-Original-To: apmail-tomcat-users-archive@www.apache.org Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2839B9042 for ; Tue, 8 May 2012 22:10:54 +0000 (UTC) Received: (qmail 65522 invoked by uid 500); 8 May 2012 22:10:50 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 65317 invoked by uid 500); 8 May 2012 22:10:50 -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 65307 invoked by uid 99); 8 May 2012 22:10:50 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 22:10:50 +0000 X-ASF-Spam-Status: No, hits=-0.0 required=5.0 tests=SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of aw@ice-sa.com designates 212.85.38.228 as permitted sender) Received: from [212.85.38.228] (HELO tor.combios.es) (212.85.38.228) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 08 May 2012 22:10:21 +0000 Received: from [192.168.245.129] (p549E09F8.dip0.t-ipconnect.de [84.158.9.248]) by tor.combios.es (Postfix) with ESMTPA id D3FE4DA0810 for ; Wed, 9 May 2012 00:09:57 +0200 (CEST) Message-ID: <4FA999B2.9070904@ice-sa.com> Date: Wed, 09 May 2012 00:09:54 +0200 From: =?ISO-8859-1?Q?Andr=E9_Warnier?= Reply-To: Tomcat Users List User-Agent: Thunderbird 2.0.0.23 (Windows/20090812) MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Slow downloads through mod_jk on Windows XP References: <4FA84EE5.7050504@ptc.com> <4FA8555C.1090703@ice-sa.com> <4FA85FD1.5060109@ptc.com> <4FA96EA2.2000203@ptc.com> <4FA98A65.3010603@ptc.com> <99C8B2929B39C24493377AC7A121E21FB019C09E87@USEA-EXCH8.na.uis.unisys.com> In-Reply-To: <99C8B2929B39C24493377AC7A121E21FB019C09E87@USEA-EXCH8.na.uis.unisys.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Caldarale, Charles R wrote: >> From: Andy Wang [mailto:awang@ptc.com] >> Subject: Re: Slow downloads through mod_jk on Windows XP > >> Downloading a large file through mod_jk to tomcat looks like this: >> 2012-05-08 16:01:22 (15.0 MB/s) - "sol-11-1111-text-x86.iso.8" saved >> [450799616/450799616] > >> Downloading the same large file directly through apache looks like: >> 2012-05-08 16:01:58 (19.3 MB/s) - "sol-11-1111-text-x86.iso.11" saved >> [450799616/450799616] > >> So apache still beats tomcat by a good chunk > > No, httpd (not Apache, which is an open source software organization) beats httpd+Tomcat - any other result would be violating several laws of physics. Might be interesting to measure just Tomcat in your environment. > He did that previously, and the result seemed to be that Tomcat alone was comparable to httpd alone, and both were better than httpd/mod_jk + Tomcat; which is indeed physically to be expected : more tubing, less throughput (excepting quantum tunelling effects of course). The question is more : how much of a degradation ? 15.0/19.3 = 0.77 = 23% less throughput. I don't know if this is "a good chunk" or the "to be expected" kind of degradation. According to the (looking seriously outdated) AJP protocol documentation at http://tomcat.apache.org/connectors-doc/ajp/ajpv13a.html, it would seem that the maximum data size "chunk" which AJP can send back from Tomcat to the front-end httpd is 8K at a time. So AJP might not be very well suited, when it comes to send back big blobs of data. Rainer would need to confirm if that is still the case now. One earlier message seemed to indicate that this "httpd/mod_jk+tomcat deficit" only happened under Windows though, and not under Linux. If that is confirmed, maybe there is some subtle difference in how the TCP/IP stack is being used under the one vs the other ? --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org