Hi Everyone,
I am fighting since a week with a weird behave of OSMC Kodi 17.6 Dec release, now on my RPI3.
I switched my Setup from RPI2 to RPI3 and on RPI2 same configuration is still running fine.
Running OSMC for about 1 hour works fine and then Kodie restarted, very often with last messages like:
14:11:59.226 T:994046720 ERROR: Unable to open database: MyVideos107 [2004](Can't create TCP/IP socket (24 "Too many open files"))
14:12:06.293 T:1370501888 ERROR: Previous line repeats 61 times.
14:12:06.293 T:1370501888 ERROR: JSONRPC Server: Accept of new connection failed: 24
Or very similar messages, always related to JSONRPC Server: Accept of new connection failed: 24.
Disabling all Addons etc does not change anything in the behave. Even a couple for fresh installations and using everything in a default setup does not help at all. And from time to time, the same system runs fine for hours !
The system, see logs, runs from 13:07 to about 14:12 o clock. Based on the logs I always find something like:
Jan 23 14:12:25 HORST kernel: Out of memory: Kill process 571 (kodi.bin) score 879 or sacrifice child
Jan 23 14:12:25 HORST kernel: Killed process 571 (kodi.bin) total-vm:1460116kB, anon-rss:671188kB, file-rss:532kB, shmem-rss:0kB
Jan 23 14:12:25 HORST kernel: oom_reaper: reaped process 571 (kodi.bin), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB
So on the first look I was wondering running out of memory. So I monitored the memory every minute via:
ps aux >> /home/osmc/.kodi/temp/mem_usage.log
free >> /home/osmc/.kodi/temp/mem_usage.log
But the free memory when it crashed was 126988. Even the UI said about 400 MB free memory at this time.
My personal feeling is OutOfMemory is maybe missleading and the route cause is somewhere with too many open connections either to files or urls or databaseserver. So I monitored the server but there is most times only a couple of connections open from time to time and they are closed correctly.
Logs: Logs created on: 2018-01-23 14:40:34 - (Uptime = 5577.60)0wwkXuO5 : UNAME - Pastebin.com
Would be very very great if someone has some Idea and help to track the root cause.
Thx in
advance