1 Reply Latest reply on Feb 3, 2011 2:06 AM by Andy Taylor

    message selector performance

    mark smith Newbie

      I am running HornetQ 2.1.2.Final as a stand-alone server and I am using a JMS Queue.

       

      I have a byte property on my messages, and I use message selectors to create two receivers like this:

       

           QueueReceiver recv1 = session.createReceiver(queue, "myByteProperty = 1");

           QueueReceiver recv2 = session.createReceiver(queue, "myByteProperty = 2");

       

      This causes the CPU for the HornetQ process to go to 100%.  When I just use one receiver with no message selector, the CPU is very low.

       

      What is the reason for this?

       

      Thanks,

      Mark