X88-memoryConsumptionDebug

From VoIPmonitor.org
Jump to navigation Jump to search

sniffer prepare

LD_PRELOAD=/usr/local/lib/libjemalloc.so ./voipmonitor --config-file=./config/voipmonitor.conf -k -c -v1 -X88

Then recompile (above will show list of modified sources)

sniffer start

./voipmonitor --config-file=/etc/voipmonitor.conf -k -v1,memory_stat_ex_log,memory_stat_ignore_limit=10000000 heapsafe

lower RTP load

#define EXPERIMENTAL_SUPPRESS_AST_CHANNELS true
#define EXPERIMENTAL_LITE_RTP_MOD true

Debug

output is visible in stdout / console

lines like:

header_packet.h 110                 :      13 856 920
./voipmonitor(+0x37aabb) [0x559d4114eabb] / ./voipmonitor(+0x379c54) [0x559d4114dc54] / ./voipmonitor(+0x3771e7) [0x559d4114b1e7] / ./voipmonitor(+0x372797) [0x559d41146797] / ./voipmonitor(+0x36f0cc) [0x559d411430cc] / ./voipmonitor(+0x36cc71) [0x559d41140c71] / ./voipmonitor(+0x343b71) [0x559d41117b71] / ./voipmonitor(+0x355202) [0x559d41129202] : 42 415 488

use the hexa adresses and inpsect what is on these addresses.

# addr2line -e ./voipmonitor 0x343b71
vim /usr/src/voipmonitor/sniffer-git-88/sniff.cpp +4270