mina-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mat <forum.maill...@gmail.com>
Subject Re: Out Of Memory Problem Again
Date Sat, 21 Jul 2007 07:25:31 GMT
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 <trustin@gmail.com> wrote:
>
> On 7/21/07, mat <forum.maillist@gmail.com> wrote:
> > Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0_08-b03)
> > Java HotSpot(TM) Client VM (build 1.5.0_08-b03, mixed mode, sharing)
> > Windows 2003
> >
> > So you think it is bug of JVM?
>
> I'd suggest you to use heap buffers instead of direct buffers:
>
>
> http://mina.apache.org/faq.html#FAQ-Iget%7B%7BOutOfMemoryError%7D%7Dorresponsetimeoutandconnectionresetunderheavyload
> .
>
> HTH,
> Trustin
> --
> what we call human nature is actually human habit
> --
> http://gleamynode.net/
> --
> PGP Key ID: 0x0255ECA6
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message