Description
An excessively large buffer is used by default when persisting the 0-10 message metadata, making every message have a 65K buffer even if the metadata is tiny. The objects holding this buffer are SoftReferenced so it is possible for the broker to conintune without an OOME occuring, but the artifically large buffer results in the heap being filled more quickly than necessary and will lead to increased GC activity.The encoder is able to grow its buffer if necessary so we should default to a smaller buffer, say 1K.