When a simple MDB, with an empty onMessage(Message arg0) method, consumes messages faster then they arrive on the queue, the memory evolution inside the jconsole is stable.
However, when you have an injected stateless bean inside the MDB, and call it every time a message is received, the memory inside the Jconsole increases constantly, although the MDB consumes faster then it receives messages (messages DO NOT gather on the queue).
E.g.
public class MdbConsumer_1 implements MessageListener {
@EJB
MessageCounterFacade msgCounterBean;
@Override
public void onMessage(Message msg) {
msgCounterBean.incrementCounter(1);
}
}
Any thoughts on this issue ?
Im not sure this is HornetQ related, i would ask on the AS forum