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 slowly and chunk size increase with multiple nodes #452

Open
Lannister-Xiaolin opened this issue Apr 20, 2023 · 4 comments
Open

Comments

@Lannister-Xiaolin
Copy link

Lannister-Xiaolin commented Apr 20, 2023

Bug report

Required Info:

  • Operating System:
    Ubuntu20.04 Arm64 Galactic
  • Installation type:
  • binaries
  • DDS implementation:
    cyclonedds
  • Client library (if applicable):

rclcpp

Steps to reproduce issue

There there nodes, one is for image node witch publish fixed size image by zero copy mode
Then there two nodes(name: NodeA and Node B) subscribe to the fixed image, and publish some point cloud data(without zero copy mode)
For these nodes, we set env variables RMW_IMPLEMENTATION and CYCLONEDDS_URI correctly
Then, when I echo point cloud published by (NodeA and Node B) in the terminal without setting RMW_IMPLEMENTATION and CYCLONEDDS_URI. We can see memoy increase
image

If CPU cost is very hight and callback processing message take two much time, chunk usage and memory cost for nodes will
increase immediatly, not never come down after cpu usage come down.


Expected behavior

Memory usage and chunk usage keep stable

Actual behavior

Memory and chunk usage keep increasing

@clalancette
Copy link
Contributor

Which ROS 2 release are you using?

@Lannister-Xiaolin
Copy link
Author

Which ROS 2 release are you using?

Galactic

@clalancette
Copy link
Contributor

Galactic

Can you try with Humble and see if the situation is any better? There were a few upgrades to the iceoryx integration in that release. Note that if you want to stick with Ubuntu 20.04, you'll have to build Humble from source: http://docs.ros.org/en/humble/Installation/Alternatives/Ubuntu-Development-Setup.html

@tdinesh
Copy link

tdinesh commented Nov 16, 2023

#365 solves this for rolling.

For galactic I have a backport at galactic 365

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

3 participants