mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hieu Phan Thanh" <hie...@Cybersoft-VN.com>
Subject [mina 1.0] "java.lang.OutOfMemoryError: Direct buffer memory" occurred when stopping the application
Date Thu, 09 Nov 2006 02:11:57 GMT
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.



Mime
View raw message