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 59A85EE19 for ; Thu, 10 Jan 2013 20:20:36 +0000 (UTC) Received: (qmail 86215 invoked by uid 500); 10 Jan 2013 20:20:33 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 86171 invoked by uid 500); 10 Jan 2013 20:20:33 -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 86160 invoked by uid 99); 10 Jan 2013 20:20:32 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 20:20:32 +0000 X-ASF-Spam-Status: No, hits=-5.0 required=5.0 tests=RCVD_IN_DNSWL_HI,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: local policy) Received: from [208.91.2.13] (HELO smtp-outbound-2.vmware.com) (208.91.2.13) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 10 Jan 2013 20:20:27 +0000 Received: from sc9-mailhost1.vmware.com (sc9-mailhost1.vmware.com [10.113.161.71]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id BE25C28394 for ; Thu, 10 Jan 2013 12:20:06 -0800 (PST) Received: from zcs-prod-mta-1.vmware.com (zcs-prod-mta-1.vmware.com [10.113.163.63]) by sc9-mailhost1.vmware.com (Postfix) with ESMTP id BAB9B1848E for ; Thu, 10 Jan 2013 12:20:06 -0800 (PST) Received: from zcs-prod-mta-1 (localhost.localdomain [127.0.0.1]) by zcs-prod-mta-1.vmware.com (Postfix) with ESMTP id 2E461E1A86 for ; Thu, 10 Jan 2013 12:19:57 -0800 (PST) Received: from [10.113.236.171] (unknown [10.113.160.14]) by zcs-prod-mta-1.vmware.com (Postfix) with ESMTPSA for ; Thu, 10 Jan 2013 12:19:56 -0800 (PST) Content-Type: text/plain; charset=iso-8859-1 Mime-Version: 1.0 (Apple Message framework v1283) Subject: Re: Tomcat vs IIS download speed - configuration suggestions? From: Daniel Mikusa In-Reply-To: Date: Thu, 10 Jan 2013 15:19:54 -0500 Content-Transfer-Encoding: quoted-printable Message-Id: References: <50EED0D2.70703@verizon.net> To: "Tomcat Users List" X-Mailer: Apple Mail (2.1283) X-Virus-Checked: Checked by ClamAV on apache.org On Jan 10, 2013, at 3:10 PM, Linoma DevTeam wrote: > Thank you everyone for the responses/suggestions. >=20 > I did ensure that those were the same during the tests, but had = removed > that from the server.xml before sending. Both servers had negotiated = the > equivalent of TLS_RSA_WITH_AES_128_CBC_SHA with the client during = testing. >=20 > Also, i've verified the JVM is in server mode, and I'm currently using > 1.6.0_14. This is pretty old, you might also try the latest 1.6.0_x release and/or = the latest 17.0_x release. Those could have some performance = improvements which would narrow the gap. Dan >=20 > At times i can hit increased speeds of 10.8MB/s for IIS (about as fast = as > this server's network card can handle), with tomcat running close to = 7.8 > MB/s. (I'm just thinking out loud here) Assuming this is a normal > difference with tomcat running at 72% the speed of IIS, and if the = system > was congested to the point of slowing down the downloads from the = servers, > then I would expect tomcat to run at 2.5 MB/s if IIS was serving files = at > 3.5 MB/s. It however looks like tomcat is serving data at a = consistent 3.0 > MB/s slower than IIS (not percentage based), which is why i saw 350 = KB/s > against the 3.5 MB/s from IIS? >=20 > Anyway, I will try the APR connector and let you know. Thanks again = for > your comments! >=20 > On Thu, Jan 10, 2013 at 8:31 AM, David kerber = wrote: >=20 >> On 1/10/2013 8:56 AM, Linoma DevTeam wrote: >>=20 >>> Hi everyone, >>>=20 >>> I'm running some comparison tests with tomcat 6.0.35 and IIS running = in >>> parallel on Windows Server 2008 R2. Now I would expect Tomcat to be >>> somewhat slower, given the extra JVM layer, but in some situations, = i'm >>> seeing differences that are tough to swallow. >>>=20 >>=20 >> What JVM are you running under? Is it running the client or server >> version? I've found huge performance improvements in some kind of >> operations under a server JVM compared to client ones. >>=20 >>=20 >> D >>=20 >>=20 >>=20 >>> Downloads >>> IIS ~3.7 MB/s >>> Tomcat ~350 KB/s >>>=20 >>> Test Details: >>> I placed a ~500MB file in the document root of the web app on tomcat = and >>> set up an HTTPS connector. Then I set up IIS with the same file and = an >>> HTTPS listener. I configured the cipher suite in tomcat to be the = same >>> one >>> that was negotiated between IIS and my Chrome browser. Finally, I = set the >>> JVM max memory to 1024MB with a min of 900MB to reduce the impact of = the >>> GC >>> and the memory allocation. >>>=20 >>> I'm using HTTP/1.1 connectors with pretty standard configuration: >>>=20 >>> >>>=20 >>> >>> >>>=20 >>> >> SSLEnabled=3D"true" enableLookups=3D"false" = disableUploadTimeout=3D"true" >>> scheme=3D"https" secure=3D"true" clientAuth=3D"false" = sslProtocol=3D"TLS" >>> algorithm=3D"SunX509" keystoreFile=3D"C:\temp\sample_**keystore.jks" >>> keystorePass=3D"password" keyAlias=3D"sample-key" keystoreType=3D"JKS"= >>> truststoreFile=3D"C:\temp\**sample_truststore.jks" >>> truststorePass=3D"password" >>> truststoreType=3D"JKS" /> >>>=20 >>> >>> >> errorReportValveClass=3D"com.**company.**CustomErrorReportValve"> >>> >> reloadable=3D"false"> >>> >>> >>> >>> >>> >>> >>>=20 >>> So, I extend the question of, why would tomcat only be able to reach = 10% >>> of >>> the speed IIS is able to server when running parallel tests? Any >>> suggestions on configurations that I could adjust on Tomcat, the = JVM, or >>> operating system that improve that download speed? >>>=20 >>> Thanks in advance! >>>=20 >>>=20 >>=20 >> = ------------------------------**------------------------------**--------- >> To unsubscribe, e-mail: = users-unsubscribe@tomcat.**apache.org= >> For additional commands, e-mail: users-help@tomcat.apache.org >>=20 >>=20 --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org