I have not read all the posts here so i am not sure if we do have a script running capturing memory usage but we need to start an investigation of a suspected memory leak, is:
- debug logging enabled on the server (settings / server / general / show advanced)
- putting a script like one we used here Server Crashes While Loading EPG Data - #18 by sa2000 in place
#!/bin/sh
while sleep 30s
do
now=$(date +"%D %T")
mem=$(ps -p $1 -o drs=)
echo $now "," $mem "\n" >> mem_snapshots.log
done
- shutting down Plex Media Server and then re-launching it, finding the PID of the Plex Media Server process and then passing it as parameter to the shell script above
- waiting 60 seconds and seeing that the script is ok capturing memory use into file
mem_snapshots.logevery 30 seconds - with this script running and debug enabled
- wait until huge amount of memory has got occupied (suspected leak)
- capture logs zip and attach with that mem_snapshots.log file
- no harm in also getting a forced process core dump (see Understand and configure core dumps on Linux - Linux Audit for general advice on core dumps)
(initially the logs with the mem_snapshots.log file could be enough to start an investigation)