Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-3021

OOM due to wrong CORE clustered message memory estimation

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.19.1, 2.20.0
    • None
    • None

    Description

      This is affecting clustered Core messages (persistent or not).

      The process that cause the wrong estimation is:

      1. add route information to the message
      2. get memory estimation for paging (ie address size estimation) without accounting the new route information
      3. get message persist size for durable append on journal/to update queue statistics, triggering a re-encoding
      4. re-encoding (can) enlarge the message buffer to be the next power of 2 available capacity

      The 2 fixes are:

      • getting a correct memory estimation of the message (including the added route information)
      • save an excessive buffer growth caused by the default Netty's ByteBuf::ensureWritable strategy

      Attachments

        Issue Links

          Activity

            People

              nigrofranz Francesco Nigro
              nigrofranz Francesco Nigro
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Time Tracking

                  Estimated:
                  Original Estimate - Not Specified
                  Not Specified
                  Remaining:
                  Remaining Estimate - 0h
                  0h
                  Logged:
                  Time Spent - 6h
                  6h