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

Memory leak in activemq-pool

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 5.6.0
    • Fix Version/s: 5.7.0
    • Component/s: Pool
    • Labels:
    • Patch Info:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: