Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Memory leak in TCPChannelResource #4877

Open
1 task done
ulongcha opened this issue May 30, 2024 · 3 comments
Open
1 task done

Memory leak in TCPChannelResource #4877

ulongcha opened this issue May 30, 2024 · 3 comments
Labels
in progress Issue or PR which is being reviewed

Comments

@ulongcha
Copy link

Is there an already existing issue for this?

  • I have searched the existing issues

Expected behavior

When TCPClient left domain, its tcpchannel in TCPServer should be removed.

Current behavior

When TCPClient match TCPServer, TCPServer's memory increase and will not decrease.
image
Use valgrind --tool=massif to generate a memory report also find increase memory in TCPChannelResource.

Steps to reproduce

Run DDSHelloWorldTCP demo with Server and Client, frequent start and stop Client.

Fast DDS version/commit

2.14.0

Platform/Architecture

Ubuntu Focal 20.04 amd64, Ubuntu Focal 20.04 arm64

Transport layer

TCPv4

Additional context

No response

XML configuration file

No response

Relevant log output

No response

Network traffic capture

No response

@ulongcha ulongcha added the triage Issue pending classification label May 30, 2024
@elianalf
Copy link
Contributor

Hi ulongcha,
thanks for using Fast DDS.

This issue should be solved in Fast DDS 2.14.1, so you can try to upgrade to the new version.
Let us know if the problem is solved.

@elianalf elianalf added in progress Issue or PR which is being reviewed and removed triage Issue pending classification labels May 31, 2024
@ulongcha
Copy link
Author

ulongcha commented Jun 2, 2024

Hi @elianalf
I upgrade Fast DDS to 2.14.1, memory leak problem seems still exsist.
Memory releated to TCP part still increases.
image
When I config TLS on TCP, the asio_ssl part also has memory leak. Maybe TCPChannel's resource not release correctly when Participant leave domain.

@elianalf
Copy link
Contributor

elianalf commented Jun 3, 2024

Hi @ulongcha,
Ok, we will have a look and try to reproduce the issue. We will come back with a feedback.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
in progress Issue or PR which is being reviewed
Projects
None yet
Development

No branches or pull requests

2 participants