7 Replies Latest reply on Feb 15, 2011 10:58 AM by Enrique San Martín Branched to a new discussion.

    Consumer Max Rate not working, Why?

    Ross Nicholson Apprentice

      I'm using the 2.0.0GA release.

       

      I've set the following in hornetq-jms.xml:

       

         <connection-factory name="NettyConnectionFactory">
            <connectors>
               <connector-ref connector-name="netty"/>
            </connectors>
            <entries>
               <entry name="/ConnectionFactory"/>
               <entry name="/XAConnectionFactory"/>
            </entries>
            <consumer-max-rate>4</consumer-max-rate>
         </connection-factory>

       

         <connection-factory name="InVMConnectionFactory">
            <connectors>
               <connector-ref connector-name="in-vm"/>
            </connectors>
            <entries>
               <entry name="java:/ConnectionFactory"/>
               <entry name="java:/XAConnectionFactory"/>
            </entries>
            <consumer-max-rate>4</consumer-max-rate>
         </connection-factory>

       

      So each connection factory should consume a max of 4 mesages per second. But in the logs I can see that 30 messages are being delivered per second. Messages are delivered through an MDB.

       

      I followed the documentation for the connection factory setting, any ideas why this is not working?

       

      Ross