activemq-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Christopher L. Shannon (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMQ-6811) ReduceMemoryFootprint does not work on messages with no body
Date Fri, 15 Sep 2017 16:23:00 GMT

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

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

Thanks, I moved it to the right location.

> ReduceMemoryFootprint does not work on messages with no body
> ------------------------------------------------------------
>
>                 Key: AMQ-6811
>                 URL: https://issues.apache.org/jira/browse/AMQ-6811
>             Project: ActiveMQ
>          Issue Type: Bug
>          Components: Broker
>    Affects Versions: 5.15.0
>            Reporter: Christopher L. Shannon
>            Assignee: Christopher L. Shannon
>             Fix For: 5.15.1, 5.16.0
>
>
> I was debugging an out of memory error on a broker that was caused by the unmarshalled
message properties being in memory even though the reduceMemoryFootprint flag was set to true
so this map should have been cleared after send.  
> Upon further investigation I realized it was because the isMarshalled() method on a message
only checks if the marshalled content is not null however the check should actually be if
the content is not null OR if the unmarshalled value is null/empty (ie no body set at all).
 This same check is already done properly for header properties and just needs to be extended
for the body.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Mime
View raw message