[
https://issues.apache.org/jira/browse/QPID-8430?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17071952#comment-17071952
]
Kim van der Riet commented on QPID-8430:
----------------------------------------
The above change prevents non-persistent AMQP 0-10 messages with a trace
attached from undergoing a deep copy needed for persistence when the trace is
cleared as a part of rerouting. This has a big impact on the memory consumed
when these messages are repeatedly rerouted within the same broker. See
[https://bugzilla.redhat.com/show_bug.cgi?id=1804134#c25] for a detailed
profile of memory used for AMQP 0-10 and AMQP 1.0 messages with and without
traces before and after this fix.
> [qpid-cpp] Excessive memory use when rerouting messages
> -------------------------------------------------------
>
> Key: QPID-8430
> URL: https://issues.apache.org/jira/browse/QPID-8430
> Project: Qpid
> Issue Type: Bug
> Components: C++ Broker
> Reporter: Kim van der Riet
> Assignee: Kim van der Riet
> Priority: Major
>
> When a message is rerouted several times, the broker's used memory increases
> rapidly. This is counter-intuitive, considering that the messages themselves
> are only passing from one queue to another. There is no evidence of a leak,
> however, only a large growth in consumed memory.
> An investigation has shown that the process of clearing traces from the
> message when rerouting (whether they exist or not) causes the message and its
> frames to be copied (for reasons of avoiding locks on the message, which can
> affect performance).
--
This message was sent by Atlassian Jira
(v8.3.4#803005)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]