directory-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Tencé, Vincent" <vte...@optimuminformatique.com>
Subject RE: [mina] Performance issues
Date Wed, 23 Mar 2005 19:10:00 GMT
I agree with Berin and 25,000 concurrent connections is a pretty impressive
number already!

Great work by Trustin, no doubt about that!

-- Vincent

> -----Original Message-----
> From: Vinod Panicker [mailto:vinod.p@gmail.com]
> Sent: March 23, 2005 3:13 AM
> To: Apache Directory Developers List
> Subject: Re: [mina] Performance issues
> 
> 
> 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(SocketAcce
> ptor.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.
> > >
> >
> 

Mime
View raw message