Uploaded image for project: 'JBoss A-MQ'
  1. JBoss A-MQ
  2. ENTMQ-2315

Using static queue as a reply queue in InOut pattern causes memory leak in Network of Brokers

    XMLWordPrintable

Details

    • Bug
    • Resolution: Not a Bug
    • Major
    • None
    • JBoss A-MQ 6.3
    • broker, camel, networks
    • None
    • Hide

      SpringBoot reproducer attached, along with 3-node broker configuration. Parameters such as cache levels can be set via application.properties.

      Running the reproducer with a property of jms.replyto.cachelevel.name=CACHE_NONE results in a fairly rapid leak of network consumers that remain after the client application is shut down / killed.

      Show
      SpringBoot reproducer attached, along with 3-node broker configuration. Parameters such as cache levels can be set via application.properties. Running the reproducer with a property of jms.replyto.cachelevel.name=CACHE_NONE results in a fairly rapid leak of network consumers that remain after the client application is shut down / killed.

    Description

      When using shared reply queues in a network of brokers, the churn in consumer updates (to update selectors) results in a build up of orphaned ConsumerInfo objects eventually causing the brokers in the network to run out of heap space.

      This is observed when a replyToCacheLevelName of CACHE_SESSION or CACHE_NONE is set. When CACHE_CONSUMER is used, an increase in consumers per reply destination is not observed; however, dispatch is blocked by consumers with selector expression JMSCorrelationID='CamelDummyJmsMessageSelector' (See also ENTESB-11033).

      Even if consumers and producers all attach to only one node in the broker cluster, a buildup of network consumers is seen on the opposite nodes in the cluster until an OOM condition occurs (the consumer counts on the node with attached consumers remains relatively constant)

      Attachments

        Issue Links

          Activity

            People

              gtully@redhat.com Gary Tully
              rhn-support-dhawkins Duane Hawkins
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: