directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Trustin Lee <trus...@gmail.com>
Subject Re: [mina] Performance issues
Date Wed, 23 Mar 2005 19:08:09 GMT
It would be nice if we can test with new snapshot to see if the
changes in filter chains affects performance or not.  :)

On Wed, 23 Mar 2005 13:43:21 +0530, Vinod Panicker <vinod.p@gmail.com> wrote:
> With the heap size for the JVM specified as 500 MB, the server is able
> to have 25K + connections.  I need to spruce up the client now to be
> able to establish more connections.
> 
> Lets see how many concurrent connections the mina server can support.
> 
> Regards,
> Vinod.
> 
> 
> On Wed, 23 Mar 2005 12:17:49 +0530, Vinod Panicker <vinod.p@gmail.com> wrote:
> > Hi,
> >
> > The Connector seems to be working much better now.  Memory consumption
> > is still an issue with the server running out of memory at around 8000
> > concurrent connections.
> >
> > Here's the stack trace -
> >
> > Exception in thread "SocketAcceptor-0" java.lang.OutOfMemoryError:
> > Direct buffer memory
> >         at java.nio.Bits.reserveMemory(Unknown Source)
> >         at java.nio.DirectByteBuffer.<init>(Unknown Source)
> >         at java.nio.ByteBuffer.allocateDirect(Unknown Source)
> >         at org.apache.mina.common.ByteBuffer.allocate(ByteBuffer.java:95)
> >         at org.apache.mina.io.socket.SocketSession.<init>(SocketSession.java:94)
> >         at org.apache.mina.io.socket.SocketAcceptor$Worker.run(SocketAcceptor.java:227)
> >
> > This was using default JVM settings till now.  Tinkering out with
> > different heap sizes now.
> >
> > I'm using JDK 1.5.0_01
> >
> > Regards,
> > Vinod.
> >
> > On Wed, 23 Mar 2005 10:29:03 +0530, Vinod Panicker <vinod.p@gmail.com> wrote:
> > > Hi Trustin,
> > >
> > > Thanks for the fix, checking it out now.
> > >
> > >
> > > On Wed, 23 Mar 2005 00:03:29 +0900, Trustin Lee <trustin@gmail.com> wrote:
> > > > Hi Vinod,
> > > >
> > > > > It seems like the issue is in the Connector.  When I used a non-mina
> > > > > based client running in a single thread to connect to the mina based
> > > > > server, it works fine.
> > > >
> > > > I found a serious flaw that will degrade SocketConnector performance.
> > > > I checked in the fix into trunk. Could you retry?
> > > >
> > > > > The server runs out of memory after a bit over 8000 connections.
> > > >
> > > > What was max heap size?  Does this mean we have to lessen MINA's
> > > > memory consumption?
> > >
> > > Actually rather than looking at it from that perspective, i'd look at
> > > is as "how much memory should be consumed for maintaining a single
> > > connected socket"
> > >
> > > IMO, on a "standard" linux box, number of connected sockets supported
> > > should be around 50K or even more.
> > >
> > > >
> > > > <snip/>
> > > >
> > > > Thanks,
> > > > Trustin.
> > > > --
> > > > what we call human nature is actually human habit
> > > > --
> > > > http://gleamynode.net/
> > > >
> > >
> > > Regards,
> > > Vinod.
> > >
> >
> 

Thanks,
Trustin
-- 
what we call human nature is actually human habit
--
http://gleamynode.net/

Mime
View raw message