Plex Crashes Every 3 Days at 3:30am Due to System "Out of Memory" Since PMS 1.24.4.5081

It does a vacuum (optimize) before downloading. :slight_smile:

Got it! Let me know if you need anything else from me!

Fresh logs please ?

Here you go:

Plex Media Server Logs_2021-11-05_21-55-22.zip (4.2 MB)

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.

Plex Media Server Logs_2021-11-07_12-08-50.zip (1.7 MB)

@enragedyouth85

Would you please do the following?

  1. Ensure the Synology “Text Editor” app is installed in DSM (Package Center)

  2. Stop Plex

  3. FileStation -

  4. Navigate - PlexMediaServer/AppData/Plex Media Server

  5. Right-click - Preferences.xml → Open with Text Editor

  6. On the last line, before the closing /> , please add - LogMemUse="1"

  7. It will look like -
    SomeOtherPref="Value" LogMemUse="1" />

  8. Save the file

  9. 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.

1 Like

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.

@ChuckPa

Plex Media Server Logs_2021-11-07_19-54-07.zip (1.4 MB)

@enragedyouth85

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.

These are the timestamps on my NAS logs when the Plex service crashes.

@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.

Plex Media Server Logs_2021-11-08_09-23-21.zip (3.5 MB)

@SuperDragonite

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.)

Plex Media Server Logs_2021-11-11_08-35-19.zip (3.3 MB)

@SuperDragonite

Smoking gun!

May I have the database please to give to Engineering?