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

Changing Address Settings defaults like Paging Flow Control to avoid OME on default configuration on broker

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 2.24.0
    • 2.25.0
    • None
    • None

    Description

      Starting with version 2.24.0 of the broker, a single client can cause the broker to OOM and terminate if an address is paging and holds enough messages to collectively fill the broker heap.

      To reproduce:

      $ apache-artemis-2.24.0/bin/artemis create broker
      $ broker/bin/artemis-service start
      $ broker/bin/artemis producer \
        --destination TEST \
        --text-size 100000 \
        --message-count 100000

      Optional:
      Tweak "message-count" + "text-size" above together with the "-Xmx"-property in artemis.profile to be able to trigger it faster

      Kill broker with:

      $ broker/bin/artemis consumer \
         --destination TEST \
         --message-count 1 \
         --url "(tcp://localhost:61616)?consumerWindowSize=-1" \
         --sleep 60000

      Not saying this is demonstrating proper usage of the client, but this was the easiest way I could think of to reproduce the problem.
      Running the same procedure against an older version of the broker results in no such issue

      Attachments

        Issue Links

          Activity

            People

              clebertsuconic Clebert Suconic
              AntonRoskvist Anton Roskvist
              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 - 1h 50m
                  1h 50m