Return-Path: Delivered-To: apmail-directory-dev-archive@www.apache.org Received: (qmail 47531 invoked from network); 7 Oct 2005 02:11:15 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 7 Oct 2005 02:11:15 -0000 Received: (qmail 41825 invoked by uid 500); 7 Oct 2005 02:11:14 -0000 Delivered-To: apmail-directory-dev-archive@directory.apache.org Received: (qmail 41623 invoked by uid 500); 7 Oct 2005 02:11:13 -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 41612 invoked by uid 99); 7 Oct 2005 02:11:13 -0000 Received: from asf.osuosl.org (HELO asf.osuosl.org) (140.211.166.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 19:11:13 -0700 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=HTML_MESSAGE,RCVD_BY_IP,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (asf.osuosl.org: domain of trustin@gmail.com designates 64.233.184.202 as permitted sender) Received: from [64.233.184.202] (HELO wproxy.gmail.com) (64.233.184.202) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Oct 2005 19:11:17 -0700 Received: by wproxy.gmail.com with SMTP id 71so294966wri for ; Thu, 06 Oct 2005 19:10:51 -0700 (PDT) DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=beta; d=gmail.com; h=received:message-id:date:from:reply-to:to:subject:in-reply-to:mime-version:content-type:references; b=sCvZSPjAxZOyWV16r/DtAbSJVzQjFQCnnI8hoK2Vb+YfqZgS0JQpboMDw7hojWLDpPlHJFd5oGvq/QyFPGGAR8CLuJllVCO9IQ8Hx7Y+04LjmwUj3Kb5VeaYeXdi2/Xx0H1aUA7Bviqj7sVUSjD7MpJzYVjUix4VGHGVJQR1n2Q= Received: by 10.54.120.20 with SMTP id s20mr1843098wrc; Thu, 06 Oct 2005 19:10:51 -0700 (PDT) Received: by 10.54.71.11 with HTTP; Thu, 6 Oct 2005 19:10:51 -0700 (PDT) Message-ID: <768dcb2e0510061910n6c819e83k@mail.gmail.com> Date: Fri, 7 Oct 2005 11:10:51 +0900 From: Trustin Lee Reply-To: Trustin Lee To: Apache Directory Developers List Subject: Re: [MINA] Some Questions In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_3799_3724747.1128651051794" References: X-Virus-Checked: Checked by ClamAV on apache.org X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N ------=_Part_3799_3724747.1128651051794 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jose, 2005/10/6, Jose Alberto Fernandez : > > We are evaluating the use of MINA as the server kernel for one of our > projects. > Great. Any questions and requests for support is OK. > I have been roaming around on the site and the code and have some > questions. > > 1) Are there any stress test numbers or profiling that has been done? I > have not come across anything yet. > Not much yet. Possibly you can provide some benchmark tests for us. It is known than MINA can handle more than 30k clients at once AFAIK. > 2) I have been looking at the way things are done in MINA and in > particular at the ServiceRegistry API and it seem that any filters that o= ne > sets up apply to all ports and protocols. So I could not have SSL setup o= n > one port and no-SSL in another. Is this the case? One would think that on= e > should be able to set-up such filtering in a Service by Service basis (i.= e., > http vs. https). > You can add filters to each session. There is a method called 'getFilterChain()' in IoSession and ProtocolSession. > 3) While trying to understand (2) I noticed the following code in > SimpleServiceRegistry: > > 219 *private* *void* startT= hreadPools() > > 220 { > > 221 *if*( !services.isE= mpty() ) > > 222 *return*; > > 223 > > 224 ioThreadPoolFilter.= start(); > > 225 protocolThreadPoolF= ilter.start(); > > 226 } > > 227 > > Is this correct? You only start the thread pools when there are no > services? Looks odd. > It is correct because startThreadPools() is invoked whenever bind() is called(). Thread pools should be started only when it is the first bind. HTH, Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ ------=_Part_3799_3724747.1128651051794 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable Content-Disposition: inline Hi Jose,

2005/10/6, Jose Alberto Fe= rnandez <jalberto@cellectiv= ity.com>:

We are evaluating the use of MINA as the server kernel fo= r one of our projects.

Great.  = Any questions and requests for support is OK.

I have been roaming around on the site and the code and h= ave some questions.

 

1)     &n= bsp; Are there any stress test numbers or profiling that has been done? I have not come ac= ross anything yet.

Not much yet.  = Possibly you can provide some benchmark tests for us.  It is known tha= n MINA can handle more than 30k clients at once AFAIK.

2)=     &nb= sp;  I have been looking at the way things are done in MINA and in particular at the ServiceRegistry API and it seem that any filters that one sets up apply to = all ports and protocols. So I could not have SSL setup on one port and no-SSL i= n another. Is this the case? One would think that one should be able to set-u= p such filtering in a Service by Service basis (i.e., http vs. https).=

You can add filters to each session.&nbs= p; There is a method called 'getFilterChain()' in IoSession and ProtocolSes= sion.

3) =       While trying to understand (2) I noticed the following code in SimpleServiceRegistry:


219     =
private void startThreadPools()

220     =
{

221    &=
nbsp;    if( !services.isEmpty() )
222    &=
nbsp;        return;

223 

224    &=
nbsp;    ioThreadPoolFilter.start();

225    &=
nbsp;    protocolThreadPoolFilter.start();
=

226     =
}

227

 

Is this correct? You only start the thread pools when there are no services? Looks odd.

=
It is correct because startThreadPools() is invoked whenever bind() is = called().  Thread pools should be started only when it is the first bi= nd.

HTH,
Trustin
--
what we call human nature is actu= ally human habit
--
http://gleamyn= ode.net/ ------=_Part_3799_3724747.1128651051794--