Return-Path: Delivered-To: apmail-jakarta-tomcat-dev-archive@www.apache.org Received: (qmail 71841 invoked from network); 4 May 2005 16:41:09 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 4 May 2005 16:41:09 -0000 Received: (qmail 3931 invoked by uid 500); 4 May 2005 16:41:58 -0000 Delivered-To: apmail-jakarta-tomcat-dev-archive@jakarta.apache.org Received: (qmail 3774 invoked by uid 500); 4 May 2005 16:41:53 -0000 Mailing-List: contact tomcat-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Developers List" Reply-To: "Tomcat Developers List" Delivered-To: mailing list tomcat-dev@jakarta.apache.org Received: (qmail 3605 invoked by uid 99); 4 May 2005 16:41:50 -0000 X-ASF-Spam-Status: No, hits=2.2 required=10.0 tests=FORGED_YAHOO_RCVD X-Spam-Check-By: apache.org Received-SPF: pass (hermes.apache.org: domain of jak-tomcat-dev@m.gmane.org designates 80.91.229.2 as permitted sender) Received: from main.gmane.org (HELO ciao.gmane.org) (80.91.229.2) by apache.org (qpsmtpd/0.28) with ESMTP; Wed, 04 May 2005 09:41:48 -0700 Received: from list by ciao.gmane.org with local (Exim 4.43) id 1DTMnt-0006mQ-Lu for tomcat-dev@jakarta.apache.org; Wed, 04 May 2005 18:32:53 +0200 Received: from adsl-63-201-228-18.dsl.snfc21.pacbell.net ([63.201.228.18]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2005 18:32:53 +0200 Received: from cmanolache by adsl-63-201-228-18.dsl.snfc21.pacbell.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Wed, 04 May 2005 18:32:53 +0200 X-Injected-Via-Gmane: http://gmane.org/ To: tomcat-dev@jakarta.apache.org From: Costin Manolache Subject: Re: Tomcat performance patch (in development) to reduce concurrency... Date: Wed, 04 May 2005 09:38:02 -0700 Lines: 35 Message-ID: References: <45f524a105040720503ee0f802@mail.gmail.com> <1115214123.6587.17.camel@smarlow.dnsdhcp.wal.novell.com> <4278F3BD.6010007@apache.org> Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: adsl-63-201-228-18.dsl.snfc21.pacbell.net User-Agent: Mozilla Thunderbird 1.0.2 (Macintosh/20050317) X-Accept-Language: en-us, en In-Reply-To: <4278F3BD.6010007@apache.org> Sender: news X-Virus-Checked: Checked X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Mladen Turk wrote: > Scott Marlow wrote: > >> Hi, >> I wonder if anyone has any feedback on a performance change that I am >> working on making. > > > Can you compare the performance of you code with the standard > implementation when the concurrency is lower then maxThreads > value? > > I see no point to make patches that will deal with cases presuming > that the concurrency is always higher then the actual number of > worker threads available. > > IMHO this is a bad design approach for the http applications, > and NIO performance is a proof of that. > It might help in cases where you have a very very slow clients. > In any other case the thread context switching will kill > the performance thought. > > Further more I don't see how can you avoid keep-alive connection > problems without using a thread-per-connection model. > The point is that with 100 keep-alive connections you will still > have 100 busy threads. Why ? 100 keep alive connections doesn't mean 100 active requests, in real servers there are many 'keep alive' connections that are just waiting for the next request. In all servers I know, concurrency was higher than the configured number of workers - at peak time, at least, where performance matters. Costin --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-dev-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-dev-help@jakarta.apache.org