Memory Leak in RPi 3 with kodi 17.6

  • Hi


    I've been looking for in internet and here in the forum info about how to set up LibreElec for running on a RPi 3.


    I've configured advancedsettings.xml file like this



    I've been looking for errors in kodi.log but I haven't found anything related to this issue.



    I've been monitoring CPU & MEM Usage and the only problem I found was that process kodi.bin is taking more and more memory resources as you can see in this top output.


    Code
    1. Tasks: 132 total, 1 running, 131 sleeping, 0 stopped, 0 zombie
    2. %Cpu(s): 4.2 us, 1.7 sy, 4.1 ni, 89.7 id, 0.2 wa, 0.0 hi, 0.0 si, 0.0 st
    3. KiB Mem : 769568 total, 47288 free, 648420 used, 73860 buff/cache
    4. KiB Swap: 0 total, 0 free, 0 used. 63908 avail Mem
    5. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    6. 983 root 20 0 2816 1572 1360 R 11.1 0.2 0:00.05 top
    7. 475 root 20 0 1264120 656676 37624 S 5.6 85.3 3:56.94 kodi.bin

    It's taking 85% just before crashing.


    Checking top output just after restarting RPi3 you can see that it only takes 17% aprox.


    Code
    1. Tasks: 137 total, 1 running, 136 sleeping, 0 stopped, 0 zombie
    2. %Cpu(s): 1.5 us, 0.5 sy, 0.1 ni, 97.9 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
    3. KiB Mem : 769568 total, 429736 free, 125184 used, 214648 buff/cache
    4. KiB Swap: 0 total, 0 free, 0 used. 583772 avail Mem
    5. PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
    6. 559 root 20 0 726212 133820 37672 S 7.0 17.4 2:01.47 kodi.bin
    7. 714 root 20 0 2816 1660 1448 R 1.3 0.2 0:00.10 top


    I don't know if I'm missing a best practices wiki or something similar.



    Thanks

    Edited 2 times, last by koven ().

  • Kodi 17 is EOL. No more builds or fixes will be released for it.

    Try LE 8.90.003 Alpha with Kodi 18 Leia and see if the problem regresses.


    Also get rid of ANY Kodi banned repositories/addons from your setup. You won't get any support when those are installed.

  • I updated LE and now it's working much better.


    Anyway I followed this link to free some cache memory


    How to Clear RAM Memory Cache, Buffer and Swap Space on Linux


    As you can see it works really good, it's up to you if you want to configure some crontab task.


    Regards