Description
Currently the reduceMemoryFootprint flag exists on a policy and can be used for Queues but not for Topics. While the flag can be set for Topics, it doesn't get applied anywhere. We should be able to apply this flag for persistent messages just like we do for Queues so that the state can be cleared after the message has been marshalled to a byte sequence. This will allow the broker to save memory and help prevent OOM errors because the memory usage counter only tracks the marshalled state of the message.