Hi Jan, > Yes increasing MaxDirectMemorySize did help at that time, but please > note that this was during early stanges of the Mina development. > But I think that it is just a temporary solution, right? How do you know any idea about the root-cause of this? Please advice me too.
> If you are having problems, I suggest that you post your questions to > the Mina-dev mailing list. See: http://mina.apache.org/ > Yes, I already posted my problem this morning, but still now, there is no response. That why I got your link. Thanks & best regards, Hieu Phan. > -----Original Message----- > From: Jan Andersson [mailto:[EMAIL PROTECTED] > Sent: Thursday, November 09, 2006 4:03 PM > To: Hieu Phan Thanh > Subject: Re: [mina 1.0] "java.lang.OutOfMemoryError: Direct buffer memory" > occurred when stopping the application > > Hieu Phan, > Yes increasing MaxDirectMemorySize did help at that time, but please > note that this was during early stanges of the Mina development. > > If you are having problems, I suggest that you post your questions to > the Mina-dev mailing list. See: http://mina.apache.org/ > > Best Regards, > Jan > > > > On 9 nov 2006, at 09:40, Hieu Phan Thanh wrote: > > Hi Jan, > > I got this link: > http://mail-archives.apache.org/mod_mbox/directory-dev/200503.mbox/%3C76 > [EMAIL PROTECTED] > > I have reached this kind of problem like you. > And I am trying to adjust [MaxDirectMemorySize] parameter as your guide. > But I would like to know, at your test result, it would be ok when you > adjusted this kind of parameter? Please advice me too. > > Thanks & best regards, > Hieu Phan. > > > > -----Original Message----- > > From: Hieu Phan Thanh [mailto:[EMAIL PROTECTED] > > Sent: Thursday, November 09, 2006 9:12 AM > > To: [email protected] > > Subject: [mina 1.0] "java.lang.OutOfMemoryError: Direct buffer memory" > > occurred when stopping the application > > > > Hi all, When executing long-run test on my software last night, I > tried > > to stop it this morning and the "java.lang.OutOfMemoryError: Direct > > buffer memory" was occurred. > > > > --LOG MESSAGE-- > > 2006-11-07 10:01:32:013 [AnonymousIoService-11] > > [com.dc.protocol.DataMessageSessionHandler:268] ERROR [][][] - > > Exception: error ocurred, DC is closing the connection on DataPort: > > 10000 > > java.lang.OutOfMemoryError: Direct buffer memory > > at java.nio.Bits.reserveMemory(Bits.java:632) > > at java.nio.DirectByteBuffer.<init>(DirectByteBuffer.java:95) > > at java.nio.ByteBuffer.allocateDirect(ByteBuffer.java:288) > > at sun.nio.ch.Util.getTemporaryDirectBuffer(Util.java:56) > > at sun.nio.ch.IOUtil.read(IOUtil.java:205) > > at sun.nio.ch.SocketChannelImpl.read(SocketChannelImpl.java:207) > > at > > > org.apache.mina.transport.socket.nio.SocketIoProcessor.read(SocketIoProc > > essor.java:272) > > at > > > org.apache.mina.transport.socket.nio.SocketIoProcessor.process(SocketIoP > > rocessor.java:246) > > at > > > org.apache.mina.transport.socket.nio.SocketIoProcessor.access$500(Socket > > IoProcessor.java:44) > > at > > > org.apache.mina.transport.socket.nio.SocketIoProcessor$Worker.run(Socket > > IoProcessor.java:564) > > at > > > org.apache.mina.util.NamePreservingRunnable.run(NamePreservingRunnable.j > > ava:43) > > at java.lang.Thread.run(Thread.java:595) > > --END LOG MESSAGE-- > > > > Note: before stopping, the software still sent/received the message as > > usual. > > > > Thanks & best regards, > > Hieu Phan. > > > > > > >
