On 7/21/07, Trustin Lee <[EMAIL PROTECTED]> wrote:
On 7/21/07, mat <[EMAIL PROTECTED]> wrote: > Hi, Trustin > > I read this "The problem was the SocketChannel.write implementation. Indeed, > even if you don't use DirectByteBuffer in your code, > SocketChannel.writedoes it for you. This means that every time you > call the write method, a new > DirectByteBuffer is created. And since there is no real and effective GC on > this type of objects, on heavy load, your application simply crash." Yes, it's true, but such a situation doesn't happen easily AFAIK.
Thanks Trustin. Sure. It normally happens after 10 hours my server starts. However, my server needs to be running 24 hours * 5 days. I really don't know how to solve this problem. 1) BTW, even I configure MaxDirectMemorySize, won't help with this issue, right? 2)Since the loading seems not heavy, WriteThrottleFilter won't help either? 3)Any other possible suggestions for my case?
However, my case seems not under heaving loading. > I guess this problem should happen to most of peoples using Mina. No?? At least not for me. Other people could shed some light here. Trustin -- what we call human nature is actually human habit -- http://gleamynode.net/ -- PGP Key ID: 0x0255ECA6