5 Replies Latest reply on Aug 16, 2013 11:03 AM by Andy Taylor

    Throttling consumer traffic in clustered JMS queue

    Keven Wang Newbie

      Hi all,

       

      We configed hornetq in cluster mode in EAP6.0 (jboss as 7.1.1 i think), and want to throttling the consumer traffic by set max session and consumerMaxRate, see annotation on MDB below, and we have two machines each running one jboss instance in cluster env, so but we expect to consume 10 msg per sec. THis works as long as we only config max session as 1. But if we set max session as 2 (of course we set consumer max rate as 5), then we see about 20 msg consumed per sec, not 10. Does anyone know what is the trick there?

       

      @ActivationConfigProperty(propertyName = "maxSession", propertyValue = "1"),

      @ActivationConfigProperty(propertyName = "consumerMaxRate", propertyValue = "10"

       

       

      Thank you.