Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 53918 invoked from network); 15 Feb 2006 21:49:29 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 15 Feb 2006 21:49:29 -0000 Received: (qmail 48203 invoked by uid 500); 15 Feb 2006 21:49:28 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 48155 invoked by uid 500); 15 Feb 2006 21:49:27 -0000 Mailing-List: contact dev-help@directory.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "Apache Directory Developers List" Delivered-To: mailing list dev@directory.apache.org Received: (qmail 48144 invoked by uid 99); 15 Feb 2006 21:49:27 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 13:49:27 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: local policy) Received: from [217.70.33.37] (HELO lists.levonline.com) (217.70.33.37) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 15 Feb 2006 13:49:26 -0800 Received: from localhost (localhost.localdomain [127.0.0.1]) by lists.levonline.com (Postfix) with ESMTP id 7414329C2BC for ; Wed, 15 Feb 2006 22:44:04 +0100 (CET) Received: from lists.levonline.com ([127.0.0.1]) by localhost (lists.levonline.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 02626-09 for ; Wed, 15 Feb 2006 22:44:03 +0100 (CET) Received: from ormen3.basenet.levonline.com (ormen3.levonline.com [217.70.32.123]) by lists.levonline.com (Postfix) with ESMTP id 5708829C086 for ; Wed, 15 Feb 2006 22:44:03 +0100 (CET) Received: from [192.168.0.138] (1-1-2-45a.gan.gbg.bostream.se [82.182.102.93]) (authenticated bits=0) by ormen3.basenet.levonline.com (8.12.11/8.12.11) with ESMTP id k1FLlUC2021489 for ; Wed, 15 Feb 2006 22:47:31 +0100 Message-ID: <43F3A16E.7030203@trillian.se> Date: Wed, 15 Feb 2006 22:47:26 +0100 From: Niklas Therning User-Agent: Mozilla Thunderbird 1.0.7 (X11/20051013) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Apache Directory Developers List Subject: Re: [mina] Socket IO processor, thread problem. References: <510E6791-0FD2-49CB-9736-39261BBB367C@stain.org> <001901c6326d$0d252500$0300a8c0@fedechiccowinxp> In-Reply-To: <001901c6326d$0d252500$0300a8c0@fedechiccowinxp> X-Enigmail-Version: 0.92.1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: By http://levonline.com - free virus scanning for all customers X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N fedechicco@gmail.com wrote: > I have some problem with a simple application that does almost only IO > on tcp sockets, it take me 100% CPU usage when I have 1000-1200 > connections. > I have met this problem every time I use a single selector thread for > many channels, and in my own old implementations I have divided the > channels on different selector threads, and then all worked well. > > I thought that I was not able to do well the selector loops, and so I > have not taken care about it, but now with mina 0.9.0 I have the same > problem. > I don't know, do you all have the same problem with many sockets making > I/O? > > I will experiment with the "mina.socket.processor" property, but it will > be strange if it works. Have you tried tuning the number of threads in your thread pool (ThreadPoolFilter)? Are you sure it's the selector thread which uses all the cpu? I haven't had any such issues but I haven't had that many active connections either. Please keep us updated on how it works when using the mina.socket.processor property. /Niklas