[
https://issues.apache.org/jira/browse/QPID-7272?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15752157#comment-15752157
]
Keith Wall commented on QPID-7272:
----------------------------------
Change seems reasonable to me. I manually tested message conversion using a
JMS publisher using both AMQP 0-9 and 0-10 and JMS consumer using AMQP 1.0.
The leak reported above has been eliminated and direct memory usage (observed
in jvisualvm) looks reasonable.
> [Java Broker] Direct memory QpidByteBuffer created in message conversion
> modules should be disposed as soon as possible after becoming unused
> ---------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: QPID-7272
> URL: https://issues.apache.org/jira/browse/QPID-7272
> Project: Qpid
> Issue Type: Bug
> Components: Java Broker
> Affects Versions: qpid-java-6.0
> Reporter: Alex Rudyy
> Assignee: Keith Wall
> Fix For: qpid-java-7.0.0
>
>
> Direct memory QpidByteBuffer in
> MessageConverter_to_1_0#convertServerMessage(...) is not disposed
> programmatically. We rely on GC to release it from memory when it became
> unused. There is a risk that when such QpidByteBuffers are not "garbage
> collected" soon enough Broker might run out of direct memory on heavy loads.
> Currently a user who relies heavily of message conversion with high rates of
> message flow, may see an OOM direct.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]