From dev-return-10085-apmail-directory-dev-archive=directory.apache.org@directory.apache.org Tue Dec 27 09:07:52 2005 Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 28929 invoked from network); 27 Dec 2005 09:07:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 27 Dec 2005 09:07:51 -0000 Received: (qmail 99916 invoked by uid 500); 27 Dec 2005 09:07:50 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 99864 invoked by uid 500); 27 Dec 2005 09:07:50 -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 99851 invoked by uid 99); 27 Dec 2005 09:07:50 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 01:07:49 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received-SPF: neutral (asf.osuosl.org: local policy) Received: from [81.26.192.38] (HELO smtp3.copergmps.it) (81.26.192.38) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 27 Dec 2005 01:07:48 -0800 Received: from [172.18.68.145] ([172.18.68.145]) by smtp3.copergmps.it with Microsoft SMTPSVC(6.0.3790.211); Tue, 27 Dec 2005 10:06:46 +0100 Message-ID: <43B1044D.7060107@eurone.it> Date: Tue, 27 Dec 2005 10:07:25 +0100 From: Alessandro Torrisi User-Agent: Mozilla Thunderbird 1.0.7 (Windows/20050923) X-Accept-Language: en-us, en MIME-Version: 1.0 To: dev@directory.apache.org Subject: [mina] Thread Pools, Concurrent connections and Performance Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-OriginalArrivalTime: 27 Dec 2005 09:06:46.0937 (UTC) FILETIME=[DD4DD090:01C60AC4] X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N Hi ! I'm developing a free and opensource Direct Connect software (P2P server). Now that protocol implementation is quite complete I'm testing with lot of connections. When connections are made in a concurrent way (50-100 a time), the server seems to be blocked... Can I do something to improve performance, adjusting some parameter or applying some programming pattern directly on Mina ? I've listened about Thread Pools on SocketAcceptor and IoThreadPool but I didn't find any tutorial or documentation, is it possible to directly configure these ones ? A C++ hubsoft (for example verlihub) can have over 10.000 concurrent connections on a 100 Mbit line, on my personal line (10 Mbit) it can have 2000-2500 users. I tested it with 600-700 connections, the software hung up. It could be that my software is not well optimized, but even if I doubled the used bandwidth I can't see 1000 users ! I listened about Mina scalability and pointed on it...please help me ! What are the base step to introduce a new more performant architecture without rewriting the code from scratch or upset the code ? Best regards (and excuse me for my english), Alessandro