Uploaded image for project: 'Spring Framework'
  1. Spring Framework
  2. SPR-16353

JMS Producers are cached even when the destination is a temporary queue causing a memory leak

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: Major
    • Resolution: Complete
    • Affects Version/s: 4.3.13, 5.0.2
    • Fix Version/s: 4.3.14, 5.0.3
    • Component/s: JMS
    • Labels:
      None
    • Last commented by a User:
      true

      Description

      Looking at the code, in CachingConnectionFactory class, I can see this fix was added some years ago for fixing the same case but on the consumer side.
      However, Temporary queue producers are always cached.

      This scenario was discovered in a request-response scenario which is causing a memory leak in the Mule ESB. At least from my perspective, it doesn't make sense, since temporary queues producers won't be used more than once.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              juergen.hoeller Juergen Hoeller
              Reporter:
              facundovs Facundo Velazquez
              Last updater:
              Spring Issues Spring Issues
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:
                Days since last comment:
                3 years, 37 weeks, 1 day ago