Server Version#: 1.42.2.10156
Currently running the official docker container on unRAID 7.2.2 (kernel 6.12.54). Over the past week or so I’ve had an issue where the server would run out of memory and kill a VM, and at one point it even led to a complete lockup of the server requiring a hard restart.
After letting the server run without the VM, I discovered the culprit was the Plex Transcoder, which at one point ate a whopping 53GB of RAM.
Here is an excerpt from unRAID’s syslog showing that:
Out of memory: Killed process 4127540 (Plex Transcoder) total-vm:55839484kB, anon-rss:55779032kB, file-rss:364kB, shmem-rss:0kB, UID:99 pgtables:109296kB oom_score_adj:0
I have temporarily alleviated the problem by enforcing an 8GB memory limit on the docker container, but last night the transcoder hit that limit 4 times within 10 minutes and was subsequently killed off.
Of note, these errors have all occurred during the maintenance window. Forcing transcoding even on some of my 4K content has not led to the transcoder using an extravagant amount of RAM or crashing.
I’ve tried looking through the logs myself at around each of the times the process was killed off, but I’m not well-versed enough in Plex’s logging to know what to look for.