Skip to content

Memory leak on STOMP broker connections that fail before heartbeats start [SPR-14266] #18838

Closed
@spring-projects-issues

Description

@spring-projects-issues

dave burns opened SPR-14266 and commented

The original boot issue (or similar issue) still occurs for a broker/server receiving simultaneous connections. I've modified the sample project and added a multi-threaded Junit method as a client. This launches 2000 concurrent threads, about 1100 successfully connect to the server (on my setup). I don't know if its the load or the failed connections (rather than clean disconnects) but the org.springframework.messaging.tcp.reactor.Reactor2TcpClient can be seen to be leaking following by the same instructions as in the original boot issue.

Weird thing is the original leak showed both the Reactor2TcpClient and StompBrokerRelayMessagHandler leaking, this just shows the reactor 2 client.

Noticed this in our production application, i.e. system accepting concurrent connections. The multi-threaded harness mimics this behavior.


Affects: 4.2.6

Reference URL: #18805

Issue Links:

Referenced from: commits 4a81aab, b502210

Backported to: 4.2.7

Metadata

Metadata

Assignees

Labels

in: webIssues in web modules (web, webmvc, webflux, websocket)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