tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Petr Sumbera <Petr.Sumb...@Sun.COM>
Subject Re: Tomcat with/without Tomcat native library
Date Wed, 01 Aug 2007 13:40:49 GMT
Hi Bill and all,

not sure what is the right way for comparison between using and not 
using APR. I tried Apache ab tool like this:

ab -c 4 -n 10000 http://localhost:8080/favicon.ico

And I don't see any difference. Actually it might be little bit slower 
with APR. The file size is 21630, so it should use sendfile then (well 
actually our APR doesn't use sendfile at the moment as far as I know).

And the other issue is stability with APR. When I configure Tomcat to 
use SSL via APR it works for simple requests. But using huge amount of 
requests with ab it will fail (and tomcat is no longer responding to any 

bash-3.00# /usr/apache2/bin/ab -c 4 -n 10000 
This is ApacheBench, Version 2.0.40-dev <$Revision: 1.146 $> apache-2.0
Copyright 1996 Adam Twiss, Zeus Technology Ltd,
Copyright 2006 The Apache Software Foundation,

Benchmarking localhost (be patient)
SSL handshake failed (5).

Test aborted after 10 failures

apr_socket_connect(): Connection refused (146)
Total of 1 requests completed


Any comment to this?


Bill Barker wrote:
> "Petr Sumbera" <Petr.Sumbera@Sun.COM> wrote in message 
>> Hi Guys,
>> Does anybody have experience or even better some numbers comparing
>> performance of Tomcat running with and without Tomcat native library
>> (libtcnative-1)?
>> I don't see any comparable difference so far (using TC 5.5.23, Native 
>> Library 1.1.10, Solaris/i386).
> On Solaris there wasn't a big difference last time I profiled it.  On 
> Solaris, it doesn't cost much to have a large number of threads blocking on 
> input, so you don't get a lot from the APR Poller.  Also, the Solaris JVM is 
> pretty optimized for the OS.  From testing with the AJP Connectors, you 
> might have noticible improvements with TC 6 and the NIO Connector on 
> Solaris, but I haven't profiled it myself.
> It's with Linux boxes (I haven't seen reports for other *nixs) with older 
> kernels that you see the most improvement when using the APR Connector.
>> Cheers,
>> Petr
>> ---------------------------------------------------------------------
>> To start a new topic, e-mail:
>> To unsubscribe, e-mail:
>> For additional commands, e-mail:

To start a new topic, e-mail:
To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message