It does a vacuum (optimize) before downloading. 
Got it! Let me know if you need anything else from me!
Fresh logs please ?
Here you go:
I am also getting a ton of Plex Media Serv stopped running because the system if out of memory.
I am running a DS 918+ with 8 gig of memory and it just started doing this.
Would you please do the following?
-
Ensure the Synology “Text Editor” app is installed in DSM (Package Center)
-
Stop Plex
-
FileStation -
-
Navigate - PlexMediaServer/AppData/Plex Media Server
-
Right-click - Preferences.xml → Open with Text Editor
-
On the last line, before the closing
/>, please add -LogMemUse="1" -
It will look like -
SomeOtherPref="Value" LogMemUse="1" /> -
Save the file
-
Start Plex
Now, when it fails again, with DEBUG logging enabled (which you have now), We will be able to see where and what it is.
I would like to keep this DB here and have another team member also analyze it.
Done, I will post logs after it happens again.
Thanks!
We’ll be able to track the actual memory usage as it performs each task.
When it spikes, it will show up immediately.
Thank you for that.
What’s the last file you played ?
From what I see, it’s damaged and causing everything to blow up
Nov 07, 2021 19:35:09.049 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.049 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.049 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.049 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
Nov 07, 2021 19:35:09.050 [0x7fe170b58b38] DEBUG - [TranscodeOutputStream] Changed instance plex-transcode-ycz82nmn87e8ca8sdpqhl5ss-3389cfe6-a132-4edf-b5fb-8880728a52a4 which had to -1; was at chunk -1 with offset -1.000000 now at chunk -1
These lines are repeated through ALL of your logs.
I can’t be 100% sure because a lot of shared users… this is what is currently playing so its a safe bet to say this is what was playing when it crashed 30 minutes ago.
@ChuckPa Here are today’s crash logs. I’d expect timestamps to be around 3:42-3:44, 6:00-6:40 and/or 9:09-9:19. I was interacting with it at 9:19, by the way, and I couldn’t connect to the unit and had to restart it with the power button. (Did not require hard restart; just had to initiate the shutdown using the button.) I assume this was because of the lack of memory.
One trick I’ve seen – Download the database.
I don’t know why but it seems to clean it out (which is where this problem is rooted)
You can verify by looking at the DB size before and after download.
@ChuckPa I can do that. If you recall, I actually downloaded it for you 3 days ago on the last crash (which also caused this). In addition, it looks like the database backup files are still growing, so I’m not sure if it helped me.
Drats, Nothing yet.
Your memory usage is still < 100 MB for everything.
What I’m hoping to catch is when it jumps to multiple GB and gets terminated.
@ChuckPa Here are today’s logs. OS gave errors this morning between 3:41 and 5:24am. I would check around 4:45am first though, because I received an OOM email then. (Based on our exchange on 11/2 where the problem you found was at the same time I received an email, I’m hoping this helps.)

