Uploaded image for project: 'ActiveMQ Classic'
  1. ActiveMQ Classic
  2. AMQ-3997

Memory leak in activemq-pool

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 5.6.0
    • 5.7.0
    • Pool
    • Patch Available

    Description

      The org.apache.activemq.pool.PooledConnectionFactory from activemq-pool has a severe memory leak when using it for sending a lot of messages. Over time this causes memory to be eaten up.

      I have tracked it down to the following tickets:

      • AMQ-3680, which keeps adding event listeners, despite previously added
      • AMQ-2643, code which keep track of loaned sessions, causing JVM to create too many ConcurrentLinkedQueue$Node instances

      There may be others. But with resolutions to those I can get the pool to not eat memory, and keep memory consumption low.

      Attachments

        1. AMQ-3997.patch
          4 kB
          Claus Ibsen
        2. good.png
          68 kB
          Claus Ibsen
        3. bad.png
          67 kB
          Claus Ibsen

        Activity

          People

            gtully Gary Tully
            davsclaus Claus Ibsen
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: