PalouseRobosub / robosub

Code for the computer on the sub
GNU General Public License v3.0
13 stars 0 forks source link

Suspected Memory Leak #248

Closed irwineffect closed 7 years ago

irwineffect commented 7 years ago

I logged into my computer today and discovered that I was completely out of RAM and swap after running the simulator for a few days. Not sure which node(s) is causing the leak, more investigation needs to be done. I first suspect the vision processing, I noticed a lot of ram was freed when I killed the buoy nodes.

Running nodes:

Sindorman commented 7 years ago

Did you run simulator for days without stopping?

skallaher commented 7 years ago

@Sindorman, that seems to be the case. Have you seen any symptoms of this problem?

Sindorman commented 7 years ago

@skallaher I tried to recreate same. I run simulator making sub face buoys, I also was running rqt plagin of left camera(if that helps). I took a screenshot of some of htop information, and left it run over night. I did notice change of total memory usage from 2.56 GB to 2.86-3.06 Gb, however the percentage of memory usage stayed the same on simulator. But the number of threads were 20 more then when I left it.

P.S. I will try to see if I will be able to pin-point why, using specific tools, because my test was just general overall if the memory increases over time.

irwineffect commented 7 years ago

Have not been able to reproduce, closing for now.