And you can use Producer Side Flow Control OR Slow Consumer Disconnect
(trunk only) if you wish to prevent queue depth growing beyond a defined
threshold.

Regards,
Marnie

On Sat, Sep 4, 2010 at 1:40 AM, Andrew Kennedy <
[email protected]> wrote:

> On 2 Sep 2010, at 02:23, [email protected] wrote:
>
>> [...] I want to know how the queue size affected my application.
>>
>
> Hi.
>
> As Marnie has already said, you should now get both JMX notifications and
> messages in the broker log file if the settings below are attained by the
> specified queue. Your XML configuration is correctly set up to achieve this.
> The frequency of the housekeeping thread can be configured as follows, per
> virtual host (this example gives a 20s delay):
>
> <virtualhosts>
>    <virtualhost>
>        <name>example</name>
>        <example>
>            <housekeeping>
>                <threadCount>2</threadCount>
>                <expiredMessageCheckPeriod>20000</expiredMessageCheckPeriod>
>            </housekeeping>
>            <!-- etc. -->
>        </example>
>    </virtualhost>
> </virtualhosts>
>
>  <maximumMessageCount>2</maximumMessageCount>
>>
>
>         <maximumQueueDepth>1</maximumQueueDepth>
>>         <maximumMessageSize>1</maximumMessageSize>
>>         <maximumMessageAge>1</maximumMessageAge>
>>
>
> Bear in mind that these are simply thresholds above which notifications
> will be sent, *not* hard limits or maxima - you will not be prevented from
> sending more messages.
>
> Andrew.
> --
> -- andrew d kennedy ? do not fold, bend, spindle, or mutilate ;
> -- http://grkvlt.blogspot.com/ ? edinburgh : +44 7941 197 134 ;
>
>
> ---------------------------------------------------------------------
> Apache Qpid - AMQP Messaging Implementation
> Project:      http://qpid.apache.org
> Use/Interact: mailto:[email protected]
>
>

Reply via email to