Uploaded image for project: 'ActiveMQ'
  1. ActiveMQ
  2. AMQ-6811

ReduceMemoryFootprint does not work on messages with no body

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.15.0
    • Fix Version/s: 5.15.1, 5.16.0
    • Component/s: Broker
    • Labels:
      None

      Description

      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.

        Attachments

          Activity

            People

            • Assignee:
              cshannon Christopher L. Shannon
              Reporter:
              cshannon Christopher L. Shannon
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: