Re: Out Of Memory Problem Again

2007-07-21 Thread peter royal
On Jul 21, 2007, at 10:41 AM, Mark Webb wrote: This is a difficult problem and I wish I had a good suggestion. The best I can give you is to profile your application and pass along information you find so that we can help you. I second this. Enable http://blogs.sun.com/alanb/entry/ heapd

Re: Out Of Memory Problem Again

2007-07-21 Thread Mark Webb
This is a difficult problem and I wish I had a good suggestion. The best I can give you is to profile your application and pass along information you find so that we can help you. On 7/21/07, Raman Gupta <[EMAIL PROTECTED]> wrote: Trustin Lee wrote: > On 7/21/07, mat <[EMAIL PROTECTED]> wrote

Re: Out Of Memory Problem Again

2007-07-21 Thread Raman Gupta
Trustin Lee 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 th

Re: Out Of Memory Problem Again

2007-07-21 Thread Mark Webb
I have not experienced this OOM problem, but if you could provide a running sample program that reproduces the problem, we would be able to help you out better. Thanks. On 7/21/07, mat <[EMAIL PROTECTED]> wrote: On 7/21/07, Trustin Lee <[EMAIL PROTECTED]> wrote: > > On 7/21/07, mat <[EMAIL PR

Re: Out Of Memory Problem Again

2007-07-21 Thread mat
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 tha

Re: Out Of Memory Problem Again

2007-07-21 Thread Trustin Lee
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 DirectByteBuffe

Re: Out Of Memory Problem Again

2007-07-21 Thread mat
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

Re: Out Of Memory Problem Again

2007-07-21 Thread mat
I already used heap buffers and disable direct buffers. ByteBuffer.setUseDirectBuffers(false); // Direct buffers perform bad. ByteBuffer.setAllocator(new SimpleByteBufferAllocator()); // Disables pooling. On 7/21/07, Trustin Lee <[EMAIL PROTECTED]> wrote: On 7/21/07, mat <[EMAIL PROTECTED]>

Re: Out Of Memory Problem Again

2007-07-21 Thread mat
Normally the OOM happens randomly. However it happens more often recently. I will deploy 2 servers with 1.5 and 1.6. See what will happen. Thanks. On 7/21/07, 向秦贤 <[EMAIL PROTECTED]> wrote: No, I dont think it is a bug of vm. Running in jdk6, just try to expect jdk6 maybe smart enough to handle