-
Bug
-
Resolution: Done
-
Major
-
AMQ 7.2.3.GA
-
None
-
-
+
-
Verified in a release
-
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); } finally { if ( queueConnection != null ){ try { queueConnection.close(); LOG.info("Connection JMS closed"); } catch (JMSException jmsException){ LOG.warn("error while cleanping up JMS resources."); } finally { connected = false; } }
after about 3 hours it possible to see that the class HierarchicalObjectRepository is continuously accumulating memory (See attached screen shot)
- clones
-
ENTMQBR-2451 There is a small memory leak when creating and deleting temporary queues
- Closed
- is incorporated by
-
JBEAP-16946 [GSS](7.1.z) There is a small memory leak when creating and deleting temporary queues
- Closed
- relates to
-
JBEAP-16769 [GSS](7.2.z) There is a small memory leak when creating and deleting temporary queues
- Closed