0 Replies Latest reply on May 21, 2015 2:45 AM by Eric Zhao

    hornetq question - there are huge number of ServerMessageImpl in jmap dump

    Eric Zhao Newbie



      I got one out of memory (heap space) in jboss 6.1.0 Final version, after doing jmap, I found there are > 65,000 count org.hornetq.core.server.impl.MessageReferenceImpl and ServerMessageImpl.


      checking the code, we set the auto acknowledgement when createSession:


      topicSession = topicConnection.createSession(transacted,ackMode); // AUTO ACKNOWLEDGE


      we didn't set the following in hortnetq-jms.xml since we think it's already AUTO-ACKNOWLEDGE.



      I don't know in which case/scenarios the ServerMessage and MessageReference object live in the memory?


      can someone help me out?


      Thanks a lot.