Uploaded image for project: 'ActiveMQ Artemis'
  1. ActiveMQ Artemis
  2. ARTEMIS-741

memory leak when using STOMP protocol

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4.0
    • 1.5.0
    • Broker, STOMP
    • None
    • JDK 8, Apache Tomcat server or standalone app, Linux or Windows

    Description

      ArtemisMQ exhibits a memory leak when using the STOMP protocol.

      Steps to reproduce:

      1. Configure a server with a JMS topic, my example uses an EmbeddedJMS server
      2. Connect to the server using the STOMP protocol
      3. Subscribe to the topic with a selector
      4. publish some messages to the topic that match the selector (this step may not be necessary)
      5. Unsubscribe from the topic
      6. publish some messages to the topic that match the selector

      The messages published after the unsubscribe are retained in a QueueImpl object, messageReferences queue and are never cleaned up unless the client disconnects. The QueueImpl object has 0 Consumers (ConsumerList size is 0), and the QueueImpl object retains the filter from the subscription.

      See also http://activemq.2283324.n4.nabble.com/potential-memory-leak-when-using-STOMP-protocol-td4716643.html

      Attachments

        1. dump-10.89.1.31.pcap
          6 kB
          Mitchell Ackerman

        Issue Links

          Activity

            People

              jbertram Justin Bertram
              mitchell.ackerman.2@gmail.com Mitchell Ackerman
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: