ActiveMQ destinationPolicy and systemUsage Configuration

Look for some help setting up systemUsage and destinationPolicy, as I have some difficulties fully understanding the relationship between systemUsage, destinationPolicy and flow control.

All our posts are persistent! Manufacturer controls FlowControl.

So we give ActiveMQ a maximum of 512 MB of heap space.

Our system works as follows:

<systemUsage>
    <systemUsage>
        <memoryUsage>
            <memoryUsage limit="200 mb"/>
        </memoryUsage>
        <storeUsage>
            <storeUsage limit="10 gb"/>
        </storeUsage>
        <tempUsage>
            <tempUsage limit="1000 mb"/>
        </tempUsage>
    </systemUsage>
</systemUsage>

Our destination policy is as below:

<destinationPolicy>
    <policyMap>
      <policyEntries>
        <policyEntry topic=">" producerFlowControl="true" memoryLimit="1mb"> 
          <pendingSubscriberPolicy>
          </pendingSubscriberPolicy>
        </policyEntry>
        <policyEntry queue=">" producerFlowControl="true" memoryLimit="1mb"> 
        </policyEntry>
      </policyEntries>
    </policyMap>
</destinationPolicy>

Can anyone check if the following is correct:

This means that for each individual queue / topic, the memory limit is 1 MB. What exactly happens when this 1 MB hits, does the queue for manufacturers block or does it make a page on disk?

200 . , 200 , 1 . 16 , .

?

, ?

! !

+5
1

, .

memoryUsage , . storeUsage , KahaDB. , , , , . tempUsage - (http://activemq.apache.org/message-cursors.html) - , ( , ).

policyEntry @memoryLimit .

, , (PFC). , ; policyEntry (http://activemq.apache.org/per-destination-policies.html).

" ", PFC, , - - . , ( , ). " " , , , (, ).

, , . , .

+6

All Articles