Plex media server goes out of memory a few times per day

Server Version# plexmediaserver-1.24.5.5173-8dcc73a59.x86_64:
Player Version# N/A, this happens when no player is active
Plex Media Server Logs_2021-11-29_09-20-42.zip (4.7 MB)

My plex media server goes down a few times a day, it happens every day, mainly in the morning.
This is happening every morning and a few times during the day for the past 2 weeks now.

It used to happen in the past when I only had 2,4 and 8GB of ram, so I kept bumping it, however I don’t think bumping the ram to 32GB is the correct solution here, something seems awry.

In the server logs I see:

[71481.359092] oom-kill:constraint=CONSTRAINT_NONE,nodemask=(null),cpuset=user.slice,mems_allowed=0,global_oom,task_memcg=/lxc/124/ns/system.slice/plexmediaserver.service,task=Plex Media Serv,pid=988660,uid=997
[71481.359168] Out of memory: Killed process 988660 (Plex Media Serv) total-vm:25338392kB, anon-rss:13159876kB, file-rss:0kB, shmem-rss:0kB, UID:997 pgtables:31304kB oom_score_adj:0
[71482.248302] oom_reaper: reaped process 988660 (Plex Media Serv), now anon-rss:0kB, file-rss:0kB, shmem-rss:0kB

This is on a linux container with plenty of ram and swap


[root@plex ~]# free -h
              total        used        free      shared  buff/cache   available
Mem:           15Gi       218Mi        14Gi       0.0Ki       242Mi        15Gi
Swap:         8.0Gi        22Mi       8.0Gi

This seems to happen every morning at 07.00 and is accompanied by disk io

I am fairly skilled in linux administration and not scared to debug an issue, so if you require anything from my part I am more than willing to provide everything required.

When looking at the logs it always seems to get killed after being stuck on this output for a while:

Activity: updated activity 4b1b842a-f738-4aa4-9f8b-f5d61fe906c1 - completed 99.8% - Butler tasks

These files always seem to relate to one of the files in the directory labeled futurama/season2

 /r/u/1/g/a/s/F/Season 2  file *                                                        Mon 29 Nov 2021 12:12:46 PM CET
Futurama S02E01 - A Flight To Remember.avi:                     RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
Futurama S02E02 - Mars University.avi:                          data
Futurama S02E03 - When Aliens Attack.avi:                       data
Futurama S02E04 - Fry & the Slurm Factory.avi:                  RIFF (little-endian) data, AVI, 720 x 576, 25.00 fps, video: DivX 5, audio: MPEG-1 Layer 3 (stereo, 48000 Hz)
Futurama S02E05 - Second That Emotion.avi:                      MPEG sequence, v1, system multiplex
Futurama S02E06 - Brannigan Begins Again.avi:                   MPEG sequence, v1, system multiplex
Futurama S02E07 - A Head In the Polls.avi:                      MPEG sequence, v1, system multiplex
Futurama S02E08 - Xmas Story.avi:                               MPEG sequence, v1, system multiplex
Futurama S02E09 - Why Must I Be A Crustacean in Love.avi:       data
Futurama S02E10 - Put Your Head on My Shoulder.avi:             MPEG sequence, v1, system multiplex
Futurama S02E11 - Lesser of Two Evils.avi:                      data
Futurama S02E12 - Raging Bender.avi:                            MPEG sequence, v1, system multiplex
Futurama S02E13 - A Bicyclops Built For Two.mpg:                MPEG sequence, v1, system multiplex
Futurama S02E14 - How Hermes Requisitioned His Groove Back.avi: data
Futurama S02E15 - A Clone of My Own.avi:                        MPEG sequence, v1, system multiplex
Futurama S02E16 - The Deep South.avi:                           MPEG sequence, v1, system multiplex
Futurama S02E17 - Bender Gets Made.avi:                         MPEG sequence, v1, system multiplex
Futurama S02E18 - My Problem With Popplers.avi:                 MPEG sequence, v1, system multiplex
Futurama S02E19 - Mother's Day.avi:                             data
Futurama S02E20 - Anthology of Interest I.avi:                  MPEG sequence, v1, system multiplex

It looks like some of those files are corrupted and do not contain a valid avi file.

So I believe some part of plex get’s hold up on these files. I could probably fix it by removing these corrupt files, but I don’t think plex should use up all it’s memory and get killed because of a corrupt avi file?

Server was killed by oom again twice this morning, here are logs taken 3mins after it was killed the second time.
Plex Media Server Logs_2021-11-30_08-19-13.zip (4.9 MB)

seems again related to the file “/mnt/nfs/tank/series/Futurama/Season 2/Futurama S02E19 - Mother’s Day.avi” (I also just noted this file has a quote in it’s name)

I moved this file to a new location out of plex’s reach to see if this changes anything.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.