Actually I wrapped the incoming packet into Object, the problem now is the
Objects not deallocated. BTW, I use heap buffer.

On 7/19/07, Trustin Lee <[EMAIL PROTECTED]> wrote:

On 7/19/07, mat <[EMAIL PROTECTED]> wrote:
> I wrapped a incoming byte array into a Object (A) in order to  pass it
> around in my business logic. However, the memory increases dynamatically
> when the incoming packets are huge. It seems the garbage collector is
not
> collecting. Is there anyway to avoid this? (Object pool)?

Are you using direct buffers?  If so, please use heap buffers instead.

Trustin
--
what we call human nature is actually human habit
--
http://gleamynode.net/
--
PGP Key ID: 0x0255ECA6

Reply via email to