Uploaded image for project: 'AMQ Broker'
  1. AMQ Broker
  2. ENTMQBR-2451

There is a small memory leak when creating and deleting temporary queues

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Done
    • Icon: Major Major
    • AMQ 7.3.0.GA
    • AMQ 7.2.3.GA
    • broker-core
    • None

      There seems to be a memory leak when creating and deleting temporary queues. When running the following code:

      try (QueueSession session = queueConnection.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE)) {
            int numberOfTemporaryQueues = 100;
      
            for (int i = 0; i < numberOfTemporaryQueues; i++) {
              TemporaryQueue temporaryQueue = session.createTemporaryQueue();
              temporaryQueue.delete();
            }
      
            LOG.info("Temporary queues deleted.");
      
          } catch (JMSException e) {
      
            LOG.error("Error while creating/deleting temporary queues.",e);
      
          } 
      

      after about 1.5 hours it possible to see large accumulation of TempQueueCleanerUpper class objects. (See attached screen shot)

              rhn-support-jbertram Justin Bertram
              rhn-support-toross Tom Ross
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Created:
                Updated:
                Resolved: