1 Reply Latest reply on Jun 9, 2013 3:15 AM by gaohoward

    ClientConsumerImpl occupies too much memory

    raysen_jia

      Dear Team,

       

      I use hornetq 2.3.0.CR1. The message is about 1000/s.

       

      I found the JVM memory is very high, then I use memory analysis tool, and get the following result. Any body know what is the problems?

       

       

      100 instances of "org.hornetq.core.client.impl.ClientConsumerImpl", loaded by "org.apache.catalina.loader.WebappClassLoader @ 0x2ab9aff9e0" occupy 965,406,208 (56.65%) bytes.

       

      Biggest instances:

       

          * org.hornetq.core.client.impl.ClientConsumerImpl @ 0x2ac13be018 - 103,212,072 (6.06%) bytes.

          * org.hornetq.core.client.impl.ClientConsumerImpl @ 0x2abf843748 - 103,211,624 (6.06%) bytes.

          * org.hornetq.core.client.impl.ClientConsumerImpl @ 0x2ac12aa910 - 103,211,432 (6.06%) bytes.

          * org.hornetq.core.client.impl.ClientConsumerImpl @ 0x2ac1166d40 - 103,211,408 (6.06%) bytes.

            * org.hornetq.core.client.impl.ClientConsumerImpl @ 0x2abf795810 - 56,253,032 (3.30%) bytes.

      1.png

        • 1. Re: ClientConsumerImpl occupies too much memory
          gaohoward

          Hi,

           

          You seems to have created many consumers. Why you need so many? Each consumer has a buffer to cache received messages. If you see the buffer is too big, it means your consumers are slow to process them. Take a look at "Flow Control" chapter in the manual and adjust your consumer settings accordingly.

           

          Howard

          1 of 1 people found this helpful