directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Karasulu <aok...@bellsouth.net>
Subject Re: [mina] Performance issues
Date Tue, 22 Mar 2005 07:00:09 GMT
Might be good to try to look at what is causing the problem using YourKit.

Alex

Trustin Lee wrote:

>Hi,
>
>On Tue, 22 Mar 2005 10:48:52 +0530, Vinod Panicker <vinod.p@gmail.com> wrote:
>  
>
>>Hi,
>>
>>I was just trying to do some tests using mina.  I've got a server and
>>a client, both of which are using mina and the thread pool filter.
>>
>>The server and the client have been run on multiple OS's - both
>>Windows (2000 & 2003) and Linux (Fedora Core 3).
>>
>>Max fd limits have been upped.
>>
>>The server uses the IoProtocolAcceptor class.  The client uses the
>>SocketConnector class.
>>
>>The client application is basically just connecting to the server and
>>maintaining a concurrent connection.
>>
>>When the client app is run, and told to establish 2000 connections to
>>the server for eg, the connection rate suddenly (no pattern observed)
>>drops to about 1 connection per second.  This has been tried on all
>>the OS's mentioned above.  The server is apparently not the cause of
>>this issue because when a different instance of the client is started
>>(on the same machine, even) the connection rate remains normal.  This
>>behaviour is not consistent, though it happens on every other run of
>>the client.
>>
>>There are no sleep()'s in the client / server code.
>>
>>Any pointers on what is happening?
>>
>>Also, is there a way using which the server connection accept backlog
>>(i forget the exact term) can be set?
>>    
>>
>
>There is a 'bind()' method with backlog parameter in SocketAcceptor. 
>IoAcceptor doesn't have it, so you'll have to down-cast it.
>
>  
>
>>PS: This same test has been carried out using our own code (non-mina)
>>and works perfectly on all the above OS's (over 20k connections on the
>>server)
>>    
>>
>
>I don't have any test machines to do that massive test.  Can that kind
>of test be reproducable in two PCs?  If so, I'll test by myself and
>figure out why.
>
>Regards,
>Trustin.
>  
>


Mime
View raw message