Fix out of memory problem produced by XMPPDecoder

Description

XMPPDecoder#doDecode will return false if content in the byte buffer is < 4. MINA will then keep the "incomplete" content in a ByteBuffer associated to the session. This is the typical case with heartbeats. The outcome oft his problem is an OOM when lots of session are doing the same thing.

A heap dump will show a huge number of SimpleByteBufferAllocator$SimpleByteBuffer instances.

Environment

None

Activity

Show:

Gaston Dombiak June 23, 2007 at 2:08 AM

Moving to 3.3.2

Fixed

Details

Assignee

Reporter

Components

Fix versions

Affects versions

Priority

Created June 22, 2007 at 1:03 PM
Updated June 23, 2007 at 2:08 AM
Resolved June 23, 2007 at 2:08 AM