Recently, we upgraded our target board to rdkb2020q2 where we see meshAgent comes as native. We are in the process of integrating Opensync2.0.5 in it, so it requires meshAgent(where it acts as the middle layer between RDKB components and opensync). The issue is whenever we start the /usr/bin/meshAgent, memory leaks drastically and the Box reboots in a minute.

Board's RAM is 512 MB and available memory was ~120 MB before triggering meshAgent process.


root@Docsis-Gateway:/usr/www# /usr/bin/meshAgent -subsys eRT. &
[1] 10491
root@Docsis-Gateway:/usr/www# Conf file /etc/debug.ini open success
rdk_logger_init /etc/debug.ini Already Stack Level Logging processed... not processing again.
********ENTER breakpad_ExceptionHandler******************
******** breakpad_ExceptionHandler EXIT******************

[1]+ Done /usr/bin/meshAgent -subsys eRT.
root@Docsis-Gateway:/usr/www#
root@Docsis-Gateway:/usr/www# top
top - 03:37:41 up 5:01, 1 user, load average: 1.29, 0.88, 0.89
Tasks: 191 total, 2 running, 189 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.6 us, 12.8 sy, 0.0 ni, 79.6 id, 0.0 wa, 0.0 hi, 3.0 si, 0.0 st
top - 03:37:44 up 5:01, 1 user, load average: 1.18, 0.87, 0.88
Tasks: 194 total, 2 running, 192 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.4 us, 12.7 sy, 0.0 ni, 83.0 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 366404 total, 141440 free, 177960 used, 47004 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 173068 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6512 root 20 0 3840 1772 1356 S 63.4 0.5 0:22.37 dbus-daemon
10492 root 20 0 143224 101944 2404 S 55.7 27.8 0:16.46 meshAgent

Tasks: 191 total, 3 running, 188 sleeping, 0 stopped, 0 zombie
%Cpu(s): 42.9 us, 25.6 sy, 0.0 ni, 28.5 id, 0.0 wa, 0.0 hi, 3.0 si, 0.0 st
KiB Mem : 366404 total, 57912 free, 261436 used, 47056 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 89540 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6512 root 20 0 3840 1772 1356 R 64.5 0.5 0:28.77 dbus-daemon
10492 root 20 0 175992 134736 2404 S 56.8 36.8 0:22.07 meshAgent

===================

em : 366404 total, 26292 free, 293044 used, 47068 buff/cache
KiB Swap: 0 total, 0 free, 0 used. 57920 avail Mem

PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6512 root 20 0 3840 1772 1356 R 61.9 0.5 0:34.78 dbus-daemon
10492 root 20 0 207736 165884 2404 S 53.8 45.3 0:27.30 meshAgent

And the Box goes for reboot due to out of memory.


Please let us know if anyone faced similar issue? and any thoughts or suggestions

Appreciate your help!