nicholasaleks / Damn-Vulnerable-Drone

Damn Vulnerable Drone is an intentionally vulnerable drone hacking simulator based on the popular ArduPilot/MAVLink architecture, providing a realistic environment for hands-on drone hacking.
MIT License
133 stars 23 forks source link

Bugfix: ROS high memory usage #15

Closed pljoel closed 3 months ago

pljoel commented 3 months ago

Issue is described on stackexchange: https://robotics.stackexchange.com/questions/93752/rosout-high-memory-usage

Without limiting the nofile soft/hard limit, ROS nodes will consume abnormal amount of memory. On a system with ulimit -Hn of 1073741816, that's 4 GB per node.

By limiting the max number of opened file descriptors to 1024:524288, ROS nodes will consume 2 MB instead.