Fast-DDS
Fast-DDS copied to clipboard
`TopicPayloadPool` memory leak problem
Is there an already existing issue for this?
- [X] I have searched the existing issues
Expected behavior
TopicPayloadPool::all_payloads_ should not memory leak, instead it should be able to release the heap memory accordingly.
Current behavior
TopicPayloadPool::all_payloads_ memory usage rises, and never be reduced.
Steps to reproduce
- Enable Security with
-DSECURITY=ON. - based on SecureHelloWorldExample, create 2 subscriptions with different partition like below.
- create one publisher that switches partition to subscriber A and B after matching.
- on each matching, memory leak happens on publisher and subscriptions.
Fast DDS version/commit
Originally found on v2.10.1.
Platform/Architecture
Ubuntu Focal 20.04 arm64
Transport layer
UDPv4
Additional context
XML configuration file
No response
Relevant log output
No response
Network traffic capture
No response
@MiguelCompany @EduPonz this looks like a memory leak bug pretty much... do you happen to know the existed issue?
CC: @Barry-Xu-2018
Hi @fujitatomoya, thanks for the report. We will address it in the next few days. Do you know if it also happens with security disabled? Regarding changing partitions, have you tried without changing partitions? It would be lovely if you can also provide a minimal reproducer. Thanks again!
Do you know if it also happens with security disabled?
No this problem does not happen without security.
Regarding changing partitions, have you tried without changing partitions?
This problem (increasing memory usage) happens only when switching the partition.
@fujitatomoya Could you provide details on the configuration?
We would need the QoS configuration of the publisher and the subscribers, and also the security configuration (the protection kinds in particular)
@fujitatomoya We finally found the issue. See https://github.com/eProsima/Fast-DDS/pull/4673 for a fix
@MiguelCompany thanks! appreciate that!