Sorry about the thread hijack - however if i have something like this

        <destinationPolicy> 
            <policyMap> 
                <policyEntries> 
                    <policyEntry queue=">" memoryLimit="1mb"
producerFlowControl="false"> 
                        <pendingQueuePolicy> 
                            <fileQueueCursor/> 
                        </pendingQueuePolicy> 
                    </policyEntry> 
                </policyEntries> 
            </policyMap> 
        </destinationPolicy>

                <systemUsage>
                  <systemUsage>
                        <memoryUsage>
                          <memoryUsage limit="20mb"/>
                        </memoryUsage>
                        <storeUsage>
                          <storeUsage limit="100mb"/>
                        </storeUsage>
                        <tempUsage>
                          <tempUsage limit="100mb"/>
                        </tempUsage>
                  </systemUsage>
                </systemUsage>

and an Xmx of 32mb

Once it reaches a limit of 1mb of messages per queue it will start to page
out to disk. 

And the activemq system reserves 20mb of memory for itself?

Is the 1mb then across all queues. So if i have 16 queues i in fact need
16mb. Because then the 20mb + 16 * 1mb will exceed my xmx value?

Sorry if i am being obtuse but like the poster i am trying to see how the 3
memory settings relate to each other.

Coincidentally i have tested the above on 5.3.1 and it works really well. If
i use 5.3 it breaks which i think is due to this
https://issues.apache.org/activemq/browse/AMQ-2610 and this 

-- 
View this message in context: 
http://old.nabble.com/Help-understanding-memory-usage-limits-tp28118112p28163080.html
Sent from the ActiveMQ - User mailing list archive at Nabble.com.

Reply via email to