Plex crashes and runs out of memory every time when it tries to run scheduled maintenance.
Server has 32gb of ram and there is plenty of free memory. About 20gb, also I added a month ago for testing extra 32gb memory and Plex crashed when it was consumed 27gb.
Syslog clearly states that Plex runs out of memory, but why ? 20gb free memory should be enough or im wrong ?
Jan 21 01:49:48 Tower kernel: Out of memory: Killed process 9469 (Plex Media Serv) total-vm:25323620kB, anon-rss:12553100kB, file-rss:0kB, shmem-rss:4kB, UID:99 pgtables:24812kB oom_score_adj:0
I also added log files, Plex just ran scheduled maintenance. Memory logging to log file is enabled.
Looked at the database and logs and there is nothing obvious - I have referred it to the development team - might need a mini dump captured when memory spike in progress = you can try by doing a kill -SEGV <pid> and see if a dump file gets created by breakpad - we normally copy the dump file to where $TEMPDIR is set - but I am not sure what that would be for your linuxserver.io docker environment
If you manage it - send me zipped mini dump file and debug server logs with memory usage and another copy of the db and also the other 2 dbs = the blobs db and the xmltv tv.plex database for epg and fresh copy of the xmltv file