[EMAIL PROTECTED] wrote:
My initial reaction to your suggestion is: does this actually change
anything?
i.e. if the prefetch is 100 and you resize it to 180, what do you do when
you reach that limit? Resize again? If the prefetch is in place to prevent
the memory footprint getting too large, resizing it may not be desirable.
You only resize it once messages have been processed. It seems to me
that the memory footprint is controlled by preventing the number of
unprocessed messages in the client going above a specific value . But as
messages are processed, they in effect 'make room' for more. However as
the server has not received acks it is unaware of this extra space and
wont send more messages unless the prefetch is increased.
Once the application acknowledges a message the prefetch can be set back
to the original value.