Return-Path: Delivered-To: apmail-tomcat-users-archive@www.apache.org Received: (qmail 6086 invoked from network); 1 Aug 2007 14:07:13 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Aug 2007 14:07:13 -0000 Received: (qmail 56670 invoked by uid 500); 1 Aug 2007 14:07:01 -0000 Delivered-To: apmail-tomcat-users-archive@tomcat.apache.org Received: (qmail 56645 invoked by uid 500); 1 Aug 2007 14:07:01 -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 56634 invoked by uid 99); 1 Aug 2007 14:07:01 -0000 Received: from Unknown (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 07:07:01 -0700 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: domain of mladen.turk@gmail.com designates 64.233.184.225 as permitted sender) Received: from [64.233.184.225] (HELO wr-out-0506.google.com) (64.233.184.225) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 01 Aug 2007 14:06:51 +0000 Received: by wr-out-0506.google.com with SMTP id 71so69808wri for ; Wed, 01 Aug 2007 07:06:36 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=gc32p06i5/DJ5KHfA22BVGNH/25+rRSzr1ZfK5PEqF/StqsZEHscWtVlmoQK+8TRgdCHZr7aaPFzUlLh20tz7+ZsE0J59Ap9yQLq7rBNFyV/zkruS3ZyiKnl28rwNTxBBSigppGRg8Qz5hGrpvBAZjHxvgy5YAUp6wpDPSl2jbU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:content-type:content-transfer-encoding; b=AdkQckYRIP/OwVOvmFMN6krsbeW8VBjSla7lVpR1ugUg/P9hx5oWMqtdZ1Hq4o/5y9sKJ+R7n1akaEJK4fjxZ1rmCgVR4WUVDX+R3HOxB3HINS0cqoU5mV4br2MvrnEumr1KLOsh7eHdvyI26g2f+X93jqtZ13AKNvMiAYXkR5Q= Received: by 10.90.105.20 with SMTP id d20mr476098agc.1185977195909; Wed, 01 Aug 2007 07:06:35 -0700 (PDT) Received: from ?192.168.0.168? ( [89.164.23.213]) by mx.google.com with ESMTPS id m6sm1098718wrm.2007.08.01.07.06.34 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 01 Aug 2007 07:06:34 -0700 (PDT) Message-ID: <46B09369.9060504@gmail.com> Date: Wed, 01 Aug 2007 16:06:33 +0200 From: Mladen Turk User-Agent: Mozilla MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Tomcat with/without Tomcat native library References: <46B08D61.7090305@sun.com> In-Reply-To: <46B08D61.7090305@sun.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Petr Sumbera wrote: > 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). > The purpose of APR is to change the model from thread-per-connection to thread-per-request. This means it will behave much faster when you have 1000 concurrent clients using Keep-Alive (HTTP 1.1). In that case you'll be able to serve them all with lower number of maxThreads. So, try to use the 'normal' test tool instead a brute force one like 'ab' that will reflect the real load to your boxes. I mean, the ab (Apache Bench) is a DoS tool, right ;) Regards, Mladen. --------------------------------------------------------------------- To start a new topic, e-mail: users@tomcat.apache.org To unsubscribe, e-mail: users-unsubscribe@tomcat.apache.org For additional commands, e-mail: users-help@tomcat.apache.org