LibreELEC 9.2.6 (only python 2)
Kodi 18.9.0 (Leia)
Python 2.7.16
I'm monitoring the used memory for some weeks on my LibreELEC HTPC with Kodi.
After using SabNZB two nights ago the memory usage of Python jumped from arround 13% to 31% and doesn't go down.
Memory before using SabNZB (see PID 608):
Code: Select all
Dumping top -o +%MEM | head -n 20
================================================
- 13:59:44 up 21 days, 11:42, 2 users, load average: 0.33, 0.20, 0.15
Tasks: 119 total, 1 running, 118 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.5 us, 2.9 sy, 0.0 ni, 95.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 747.9 total, 37.4 free, 335.2 used, 375.2 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 336.4 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
22745 root 20 0 654480 165088 20648 S 6.2 21.6 610:17.73 kodi.bin
608 root 30 10 342040 96564 1172 S 0.0 12.6 273:37.69 python
343 root 20 0 150312 21048 4428 S 0.0 2.7 108:25.71 tvheadend
Code: Select all
Dumping top -o +%MEM | head -n 20
================================================
- 14:03:18 up 26 days, 11:46, 2 users, load average: 0.22, 0.21, 0.17
Tasks: 119 total, 1 running, 118 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.5 us, 2.9 sy, 0.0 ni, 95.6 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
MiB Mem : 747.9 total, 44.9 free, 493.9 used, 209.1 buff/cache
MiB Swap: 0.0 total, 0.0 free, 0.0 used. 179.9 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
608 root 30 10 608612 235412 2312 S 0.0 30.7 368:49.57 python
22745 root 20 0 714548 197052 24108 S 0.0 25.7 1794:21 kodi.bin
343 root 20 0 150460 18224 1060 S 0.0 2.4 210:40.03 tvheadend
Code: Select all
# ps -ef | grep python
598 root 7:33 python
608 root 6h08 python /storage/.kodi/addons/service.sabnzbd/sabnzbd/SABnzbd.pyo
1004 root 0:00 grep python
The issue looks a bit like a thread with title "Memory leak?"
I do have an image if the memory usage, but as a new user I'm not able to insert it yet.
[edit 2020-12-26]
Restarted Sabnzb (systemctl restart service.sabnzbd.service), and now it dropped to 5%.
[/edit]
Merry Christmas everyone