You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@activemq.apache.org by "Christopher L. Shannon (JIRA)" <ji...@apache.org> on 2015/06/29 18:09:04 UTC

[jira] [Commented] (AMQ-5857) Message content stored twice while sending

    [ https://issues.apache.org/jira/browse/AMQ-5857?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14605813#comment-14605813 ] 

Christopher L. Shannon commented on AMQ-5857:
---------------------------------------------

I don't think it is necessary to change this as there's already another method called {{storeContentAndClear()}} which does this and you can call the method after setting the text on the message if memory could be an issue.  I would be hesitent to change the default behavior to always clear out the text because then a call to {{getText}} on a TextMessage would require an additional decoding of the content.

> Message content stored twice while sending
> ------------------------------------------
>
>                 Key: AMQ-5857
>                 URL: https://issues.apache.org/jira/browse/AMQ-5857
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: JMS client
>    Affects Versions: 5.7.0, 5.8.0, 5.9.0, 5.10.0, 5.11.0
>            Reporter: Benjamin Graf
>
> The storeContent method in ActiveMQTextMessage does not clean text field after storing content. Therefor the message temporary exists twice which can lead to OOM problems for large or many text messages concurrently processing. 



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)