raboof / nethogs

Linux 'net top' tool
GNU General Public License v2.0
3.19k stars 289 forks source link

Memory steadily climbs in -v 3 -s mode #244

Open camm9909 opened 1 year ago

camm9909 commented 1 year ago

Using version 0.8.7-16 as a monitoring tool on dedicated machine, memory usage steadily climbs until no memory is left on host and nethogs stops capturing traffic. For dedicated machines, it would also be nice if there was a GiB mode. Thanks!

tr4nk0 commented 1 year ago

Hi camm && others,

I have the same problem as you had. I'm trying to use nethogs continuously in an embedded device which has low RAM memory. The memory used by nethogs get increased slowly but continuosly. I checked nethogs with valgrind to get some info and it's full of memory leaks. I wonder... dynamic free could be too much for nethogs to be able to rec all the packets? I guess "garbage_collect_processes" is not enough to stop that memory increase...

Any suggestion or solution to be able to run nethogs in an endless way and don't run out of memory?

Thanks!