I don’t know how long it’s been a problem, but I start noticing OOM errors recently because one of my docker containers died. I forgot to copy the free line before my buffer cleared, but I had less than 1GB of free RAM prior to restarting plex and over 20GB free after:
[root@prometheus ~]# cat /etc/redhat-release
CentOS Linux release 7.8.2003 (Core)
[root@prometheus ~]# rpm -qa | grep -i plex
plexmediaserver-1.18.8.2527-740d4c206.x86_64
top - 12:10:08 up 521 days, 8:17, 1 user, load average: 0.39, 0.33, 0.29
Tasks: 331 total, 1 running, 330 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.6 us, 1.0 sy, 0.0 ni, 97.4 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32764436 total, 854308 free, 30675236 used, 1234892 buff/cache
KiB Swap: 6291452 total, 449576 free, 5841876 used. 1647288 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
6510 plex 20 0 25.2g 21.3g 3496 S 1.7 68.2 293:51.97 /usr/lib/plexmediaserver/Plex DLNA Server
27143 steam 20 0 14.9g 4.2g 6072 S 16.5 13.5 3112:42 java -jar spigot-1.15.2.jar
3876 plex 20 0 3946864 982.1m 10484 S 0.3 3.1 255:54.77 /usr/lib/plexmediaserver/Plex Media Server
24309 steam 20 0 9834884 870516 5848 S 28.3 2.7 14272:07 ./7DaysToDieServer.x86_64 -logfile ./7DaysToDieServer_Data/output_log__2020-04-03__22+
22449 steam 20 0 14.0g 645824 3336 S 3.8 2.0 691:30.86 java -server -Xms1024M -Xmx8072M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrement+
[root@prometheus ~]# systemctl restart plexmediaserver.service
[root@prometheus ~]# free -m
total used free shared buff/cache available
Mem: 31996 7004 23762 14 1229 24560
Swap: 6143 4631 1512
top - 12:12:18 up 521 days, 8:19, 1 user, load average: 2.61, 1.02, 0.54
Tasks: 335 total, 2 running, 333 sleeping, 0 stopped, 0 zombie
%Cpu(s): 4.8 us, 3.6 sy, 0.0 ni, 90.9 id, 0.7 wa, 0.0 hi, 0.0 si, 0.0 st
KiB Mem : 32764436 total, 23459804 free, 7308776 used, 1995856 buff/cache
KiB Swap: 6291452 total, 1549352 free, 4742100 used. 25013464 avail Mem
PID USER PR NI VIRT RES SHR S %CPU %MEM TIME+ COMMAND
27143 steam 20 0 14.9g 4.2g 6072 S 18.3 13.5 3113:03 java -jar spigot-1.15.2.jar
24309 steam 20 0 9834884 870516 5848 S 28.3 2.7 14272:44 ./7DaysToDieServer.x86_64 -logfile ./7DaysToDieServer_Data/output_log__2020-04-03__22+
22449 steam 20 0 14.0g 645824 3336 S 1.4 2.0 691:32.41 java -server -Xms1024M -Xmx8072M -XX:PermSize=256M -XX:+UseParNewGC -XX:+CMSIncrement+
2946 steam 20 0 12.5g 424080 1532 S 0.3 1.3 84:45.22 java -cp AlchemistPG.jar net.osaris.alchemist.server.AlchemistServer -Xmx2G
6344 plex 20 0 1400776 85296 6276 S 0.0 0.3 0:08.37 Plex Plug-in [com.plexapp.agents.subzero] /usr/lib/plexmediaserver/Resources/Plug-ins+
25982 mysql 20 0 970948 76272 2128 S 0.0 0.2 6:51.72 /usr/libexec/mysqld --basedir=/usr --datadir=/home/mysqldata/ --plugin-dir=/usr/lib64+
6225 plex 20 0 2724936 50096 18168 S 0.3 0.2 0:01.41 /usr/lib/plexmediaserver/Plex Media Server
6253 plex 35 15 1975292 46896 6488 S 0.6 0.1 0:04.28 Plex Plug-in [com.plexapp.system] /usr/lib/plexmediaserver/Resources/Plug-ins-740d4c2+
6437 plex 20 0 1058348 40132 5576 S 0.0 0.1 0:02.63 Plex Plug-in [com.plexapp.agents.imdb] /usr/lib/plexmediaserver/Resources/Plug-ins-74+
3086 root 20 0 586452 16612 3200 S 0.0 0.1 1:08.48 /usr/bin/python2 -Es /usr/sbin/tuned -l -P
6298 plex 20 0 306948 13336 8304 R 88.9 0.0 0:07.42 /usr/lib/plexmediaserver/Plex DLNA Server
Looks like DLNA was eating up the CPU for a bit after restart, I waited for it to stop:
top - 12:19:46 up 521 days, 8:27, 1 user, load average: 1.06, 0.77, 0.61
Tasks: 337 total, 1 running, 336 sleeping, 0 stopped, 0 zombie
%Cpu(s): 1.4 us, 1.1 sy, 0.0 ni, 97.5 id, 0.0 wa, 0.0 hi, 0.0 si, 0.0 st
6298 plex 20 0 2086648 44484 10576 S 0.0 0.1 0:27.75 /usr/lib/plexmediaserver/Plex DLNA Server
[root@prometheus ~]# free -m
total used free shared buff/cache available
Mem: 31996 7173 22000 14 2822 24391
Swap: 6143 4630 1513
While I could just disable DLNA to resolve the memory issues, last night my cable went out for maintenance. I couldn’t actually watch anything on Plex, even though my server is on the network because the TV clients still require an internet connection. When my internet went out the last time, I enabled DLNA so that I would have a work around. If anyone knows how to get the Plex clients to work without an internet connection on the same LAN that would be great 