Robert Greig wrote:
Hi C++ devs,
I have recently been looking at the footprint of the Java broker, in
particular when using persistent messaging, and how much memory each
message will take up (assuming no consumers in the system).
What does the C++ broker do here?
RG
Few things, Gordon wrote that piece but is out so I will provide some
details which
he might add to when back.
1. keep a reference to each message in memory (so this is the limiting
factor)
2. then we can release to content of the message (for both durable or
transient messages)
3. there are two policies for releasing a message, they are
- the size of any given message (i.e. larger than X bytes then
release content)
- the depth of a queue is more than Y, then start releasing all
messages to disk.
Hope that helps
Carl.