On 10/01/2013 14:02, David kerber wrote:
> On 1/10/2013 8:56 AM, Linoma DevTeam wrote:
>> Hi everyone,
>>
>> 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.
> 
> Are you using tcnative?

Clearly not from the configuration information below. Switching to the
APR/native connector is the obvious first step to try.

After that, check that the same / comparable encryption algorithms are
being used.

Mark


> 
> 
>>
>> Downloads
>> IIS         ~3.7 MB/s
>> Tomcat  ~350 KB/s
>>
>> 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.
>>
>> I'm using HTTP/1.1 connectors with pretty standard configuration:
>>
>> <Server port="9005" shutdown="SHUTDOWN">
>>
>> <Service name="admin">
>> <Connector port="9080" />
>>
>> <Connector port="9443" protocol="HTTP/1.1"
>> SSLEnabled="true" enableLookups="false" disableUploadTimeout="true"
>> scheme="https" secure="true" clientAuth="false" sslProtocol="TLS"
>> algorithm="SunX509" keystoreFile="C:\temp\sample_keystore.jks"
>> keystorePass="password" keyAlias="sample-key" keystoreType="JKS"
>> truststoreFile="C:\temp\sample_truststore.jks" truststorePass="password"
>> truststoreType="JKS" />
>>
>> <Engine name="admin" defaultHost="localhost">
>> <Host name="localhost" appBase="webapps"
>> errorReportValveClass="com.company.CustomErrorReportValve">
>> <Context path="/sample" docBase="C:\temp\application\WebRoot"
>> reloadable="false">
>> <Loader delegate="true" />
>> </Context>
>> </Host>
>> </Engine>
>> </Service>
>> </Server>
>>
>> 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?
>>
>> Thanks in advance!
>>
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
> For additional commands, e-mail: users-h...@tomcat.apache.org
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tomcat.apache.org
For additional commands, e-mail: users-h...@tomcat.apache.org

Reply via email to