Skip to content

JMS Producers are cached even when the destination is a temporary queue causing a memory leak [SPR-16353] #20900

Closed
@spring-projects-issues

Description

@spring-projects-issues

Facundo Velazquez opened SPR-16353 and commented

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.


Affects: 4.3.13, 5.0.2

Issue Links:

Referenced from: commits 72590db, bf4cada

Backported to: 4.3.14

Metadata

Metadata

Assignees

Labels

in: messagingIssues in messaging modules (jms, messaging)status: backportedAn issue that has been backported to maintenance branchestype: bugA general bug

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions