Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-2185

High allocation pressure due to pre generated ActiveMQExceptionMessage

    XMLWordPrintableJSON

Details

    Description

      In org.apache.activemq.artemis.core.protocol.core.impl.ChannelImpl there is

         public void returnBlocking(Throwable cause) {
            lock.lock();
      
            try {
               response = new ActiveMQExceptionMessage(ActiveMQClientMessageBundle.BUNDLE.unblockingACall(cause));
      
               sendCondition.signal();
            } finally {
               lock.unlock();
            }
         }
      

      The response is created but not used normally.

      For every get/close connection there is the a ActiveMQExceptionMessage incl. stacktrace created and abandoned.

      This shows a high allocation pressure in jmc (8 MB garbage/200 calls).

      please don't precreate the unused exception (maybe use a producer producing exception when really needed)

      Attachments

        1. tempsnip.png
          139 kB
          juergen schmied

        Activity

          People

            Unassigned Unassigned
            jschmied juergen schmied
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: