Uploaded image for project: 'ActiveMQ C++ Client'
  1. ActiveMQ C++ Client
  2. AMQCPP-220

Memory leak in activemq-cpp

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Critical
    • Resolution: Fixed
    • 2.2.3
    • 2.2.4, 3.0
    • CMS Impl
    • None
    • Solaris 10 x86
      GCC (g++) 3.4.6 (from www.sunfreeware.com)
      APR 1.3.3
      APR-util 1.3.4

    Description

      The API leaks ~ 2MB of memory for every 1 million messages consumed.

      The example consumer in activemq-cpp-2.2.3-src/src/examples/consumers can be used as a test bed, it exhibits the behavior.

      It's even worse if you are not using the consumer->setMessageListener( ) method and are instead directly using the consumer->receive() method in your own loop. I dont' have hard numbers but it is somewhere around ten-fold.

      We have an application which is processing ~ 40 million messages per day, and will keep growing until the box runs out of memory.

      Attachments

        1. amq.patch
          1 kB
          Brian Roach

        Activity

          People

            tabish Timothy A. Bish
            roach Brian Roach
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: