Return-Path: X-Original-To: apmail-tomcat-dev-archive@www.apache.org Delivered-To: apmail-tomcat-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 6340B992 for ; Wed, 4 May 2011 13:09:02 +0000 (UTC) Received: (qmail 94848 invoked by uid 500); 4 May 2011 13:09:01 -0000 Delivered-To: apmail-tomcat-dev-archive@tomcat.apache.org Received: (qmail 94791 invoked by uid 500); 4 May 2011 13:09:01 -0000 Mailing-List: contact dev-help@tomcat.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Tomcat Developers List" Delivered-To: mailing list dev@tomcat.apache.org Received: (qmail 94782 invoked by uid 99); 4 May 2011 13:09:01 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 13:09:01 +0000 X-ASF-Spam-Status: No, hits=0.7 required=5.0 tests=RCVD_IN_DNSWL_NONE,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (athena.apache.org: local policy) Received: from [193.252.22.159] (HELO smtp5.freeserve.com) (193.252.22.159) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 04 May 2011 13:08:54 +0000 Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3404.me.freeserve.com (SMTP Server) with ESMTP id B1BA01C0072D for ; Wed, 4 May 2011 15:08:31 +0200 (CEST) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3404.me.freeserve.com (SMTP Server) with ESMTP id A4A4C1C0072E for ; Wed, 4 May 2011 15:08:31 +0200 (CEST) Received: from mail.homeinbox.net (unknown [2.24.211.105]) by mwinf3404.me.freeserve.com (SMTP Server) with ESMTP id 8C3351C0072D for ; Wed, 4 May 2011 15:08:31 +0200 (CEST) X-ME-UUID: 20110504130831574.8C3351C0072D@mwinf3404.me.freeserve.com Received: from localhost (localhost [127.0.0.1]) by mail.homeinbox.net (Postfix) with ESMTP id 34CE9EAA9EF for ; Wed, 4 May 2011 14:08:31 +0100 (BST) X-Virus-Scanned: Debian amavisd-new at homeinbox.net Received: from mail.homeinbox.net ([127.0.0.1]) by localhost (mail.homeinbox.net [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id Q7RMPPYwz9v9 for ; Wed, 4 May 2011 14:08:24 +0100 (BST) Received: from [192.168.23.9] (study03.dev.local [192.168.23.9]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (No client certificate requested) by mail.homeinbox.net (Postfix) with ESMTPSA id 2A0DEEAA9DE for ; Wed, 4 May 2011 14:08:24 +0100 (BST) Message-ID: <4DC14FC4.3010502@apache.org> Date: Wed, 04 May 2011 14:08:20 +0100 From: Mark Thomas User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.2; en-GB; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: Tomcat Developers List Subject: Re: BIO performance issues References: <4DC05F39.2060102@apache.org> <4DC13D7F.7050705@apache.org> In-Reply-To: X-Enigmail-Version: 1.1.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit On 04/05/2011 14:03, Konstantin Kolinko wrote: > 2011/5/4 Mark Thomas : >> On 04/05/2011 12:04, Konstantin Kolinko wrote: >>> I do not quite get what happens in 6s. My first understanding from >>> reading the scenario was that the threads at 2s are busy because we >>> need them to process keep-alive connections. Then I see that at 6s >>> keep-alive connections are in the Queue. >>> >>> What prevents those connections that exist at "2s" from being placed >>> in the Queue? >> >> The keep-alive state is as viewed by the client. At 6s the requests in >> the queue are open connections that have already processed one requests >> and therefore are in HTTP keep-alive. However, there are no free threads >> to process them. If any data was to turn up on those connections they >> would sit in the queue until a thread was available. >> >> The difference between "Allocated threads. In HTTP keep-alive Xs" and >> "Queued. In HTTP keep-alive for Xs" is that in the allocated case, data >> will be processed as soon as it arrives. > > Maybe they can be put into the queue, if there is no data after small > timeout? In your scenario they were waiting for 3s. That is simulated polling. It works, but with the associated increase in CPU usage. Mark --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscribe@tomcat.apache.org For additional commands, e-mail: dev-help@tomcat.apache.org