Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-916

memoryLimit is not obeyed by the broker

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Do
    • Icon: Major Major
    • None
    • JBoss A-MQ 6.0
    • broker
    • None
    • Hide

      1. Take a AMQ 6.0.0 installation.

      2. Configure the memort limit at the destination level

        <policyEntry queue="FOO.BAR" producerFlowControl="true" memoryLimit="5 MB">
        </policyEntry>
      

      3. Produce 5 messages of 1 MB each

       
        java -jar extras/mq-client.jar producer --size 1048521 --user admin --password admin  --destination FOO.BAR --count 5 --brokerUrl tcp://localhost:61616
      

      Now the 6th message should ideally not be accepted by the broker but it is acceted. Many messages post 5 messages can be sent to the destination.

      Show
      1. Take a AMQ 6.0.0 installation. 2. Configure the memort limit at the destination level <policyEntry queue= "FOO.BAR" producerFlowControl= " true " memoryLimit= "5 MB" > </policyEntry> 3. Produce 5 messages of 1 MB each java -jar extras/mq-client.jar producer --size 1048521 --user admin --password admin --destination FOO.BAR --count 5 --brokerUrl tcp: //localhost:61616 Now the 6th message should ideally not be accepted by the broker but it is acceted. Many messages post 5 messages can be sent to the destination.

      • When we enable the memoryLimit parameter then it is noticed that it is not respected by the broker.

              Unassigned Unassigned
              jaysensharma Jay SenSharma (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Created:
                Updated:
                Resolved: