Really Frustrated - Plex Performance Powerful Server

Really struggling to understand why I keep having issues with Plex. This is very frustrating. Any help would be appreciated.

First, here’s my issue:

Many movies I’m trying to play stop often and sometimes Plex tells me that my server is not powerful enough to play that content.

Now here’s all the data:

My Setup / anything I can think of to help understand my setup:

  • Unraid Server
    • AMD Ryzen 7 2700X - 8 Core / 16 thread
    • 32GB RAM
    • 2 500 GB Cache Drives
    • 19 TB Array
    • Plex Docker - binhex
    • The server does not do much, I have sabnzbd, radarr, sonarr, lidarr, qbitorrent, netdata, plex, tautulli, that’s about it.
  • The containers are not going crazy or anything, most of the time they’re not doing anything.
  • I’ve had this issue when Sab is not doing any unpacking or anything.
  • This issue happens so often, that I’m able to see the CPU utilization and it’s at most 35%.
  • It happens on my Roku Ultra which is connected over a wifi via my Unifi ap, on the 5 ghz band
  • My Plex docker container settings are:
    • container path is on my cache (a pair of 500gb samsung pro 850 ssd)
    • /mnt/cache/appdata/binhex-plexpass
    • container path /transcode is set to local unraid path of /tmp
    • which I then set my transcode directory in Plex settings to /transcode which effectively means all transcoding happens in RAM
    • note, the issue isn’t RAM, my RAM never uses more than 10% even when its transcoding
  • My Plex transcoder settings are:
    • Transcoder Quality = Automatic
    • Transcoder temporary directory = /transcode
    • Transcoder default throttle buffer = 60
    • Background transcoding x264 preset = Very Fast
    • Use hardware-acclerated video encoding = checked (but I don’t have an nvidia card setup)
    • Maximum simultaneous video transcode = Unlimited
  • This issue occurs when there is only one video playing, I don’t have a lot of users or anything like that
  • The video in question or one of them, here’s as much info as I can provide, I got it from Tautulli and Plex Dashboard:
    • The video info from Plex video page:
      • Atlantis: The Lost Empire
      • Video - 1080p HEVC Main 10
      • Audio - English (DTS 5.1)
    • Tautulli info while movie is playing
      • Stream: Transcode (Speed: 0.3)
      • Container: Transcode (MKV -> MKV)
      • Video: Direct Stream (HEVC 1080p)
      • Audio: Transcode (DCA 5.1 -> AAC Stereo)
      • Subtitle: None
      • Location: LAN: 192.168.1.67
      • Bandwidth: 320 Kpbs
    • Plex Dashboard info while movie is playing
      • Plex For Rokue
      • Video - 1080p (HEVC Main 10) -> SD (h264) - Transcode
      • Audio - English (DTS 5.1) -> AAC - Transcode

That’s actually quite a lot for a relatively modest server. Lidarr in particular seems to be quite a memory pig. And even if the servers don’t seem to be doing things, they probably are actually doing quite a bit. The *arr servers in particular are constantly watching RSS feeds for stuff to download.

Among other things you’re probably starving Unraid of cache memory which is doing to severely degrade disk performance. Try shutting down everything except Plex and see how things go.

The quick/easy (but not guaranteed) fix would be to add more memory to the server. As much as you can afford and the server will take. I’m not an expert on PC hardware but you should be able to double that to 64GB.

Longer term I’d recommend moving some of the services to 2nd server. I’d probably leave Unraid, Plex, and Tautulli on the current server. Move everything else to the 2nd server. Personally I’d buy a refurbished server off of eBay. Going with a Xeon processor means you can get a lot more memory into a chassis. AMD server processors are fine too but older Xeons are very inexpensive. Most of the things you want to run don’t need a great deal of CPU but are relatively memory hungry.

Is the video being direct streamed, as Tautulli suggests, or is it being transcoded to SD, as the Plex Dashboard suggests? Transcoding a 1080p H.265 encoded video to SD H.264 is a fairly resource-intensive task. If that is indeed what’s happening, I wouldn’t be terribly surprised with that system struggling a bit.

If it is being transcoded, you can try to determine the reason and eliminate it. It could be bandwidth-related; or, it could be that the client isn’t capable of direct playing it (though I think a Roku Ultra is). If Plex thinks the client is remote for some reason, it will apply whatever bandwidth restrictions you have configured on the server and client, which could result in the video being transcoded. In the Plex dashboard, does it show Local or Remote during playback?

It may be helpful to see the server logs from a stream which exhibits the problem (debug logging enabled, verbose logging disabled).

1 Like

[Still posting even though it’s similar to what @pshanew posted as I was typing this up]

I’d probably start here and change your settings in the Roku so that you are not transcoding an HD stream down to a really low SD quality (320 Kbps/0.3 Mbps based on what you provided). Even though h.265/x.265/HEVC is more efficient at compressing, my understanding is that it takes more processing power to decode it (I could be wrong/off about that as haven’t done much additional looking into of this) but if that’s the case your server is not able to transcode fast enough (based on what you supplied, the Transcode (Speed: 0.3) from Tautulli clues us in on that. Read this article about it: https://support.plex.tv/articles/201575036-why-is-my-video-stream-buffering/ (under the section “Check the transcoding speed”).

My guess if you set your client to be able to play the full stream and your network/Wi-Fi can handle it, you probably won’t have the buffering.

-Shark2k

1 Like

May I see the XML of the source video and know if subtitles are being played?

To paste XML (the <Media> -> </Media> part

``` ( 3 back ticks)
paste xml here
```

will look like

paste xml here

when done.

May I also see the DEBUG log files, captured after about 30 seconds of playback?

No subtitles

<Media id="67679" duration="5752618" bitrate="3284" width="1920" height="816" aspectRatio="2.35" audioChannels="6" audioCodec="dca" videoCodec="hevc" videoResolution="1080" container="mkv" videoFrameRate="24p" audioProfile="dts" videoProfile="main 10">
<Part accessible="1" exists="1" id="93135" key="/library/parts/93135/1525200554/file.mkv" duration="5752618" file="/movies/Atlantis The Lost Empire (2001)/Atlantis.The.Lost.Empire.2001.Bluray-1080p.mkv" size="2366093036" audioProfile="dts" container="mkv" deepAnalysisVersion="4" requiredBandwidths="7372,6394,4538,3941,3652,3652,3652,3652" videoProfile="main 10">
<Stream id="249476" streamType="1" default="1" codec="hevc" index="0" bitrate="1696" bitDepth="10" chromaSubsampling="4:2:0" codedHeight="816" codedWidth="1920" colorPrimaries="bt709" colorRange="tv" colorSpace="bt709" colorTrc="bt709" frameRate="23.976" height="816" level="120" profile="main 10" refFrames="1" requiredBandwidths="5786,4835,2987,2392,2193,2193,2193,2193" width="1920" displayTitle="1080p (HEVC Main 10)" extendedDisplayTitle="1080p (HEVC Main 10)"/>
<Stream id="249477" streamType="2" selected="1" default="1" codec="dca" index="1" channels="6" bitrate="1509" language="English" languageCode="eng" audioChannelLayout="5.1(side)" bitDepth="24" profile="dts" requiredBandwidths="1509,1509,1509,1509,1509,1509,1509,1509" samplingRate="48000" title="Surround" displayTitle="English (DTS 5.1)" extendedDisplayTitle="Surround (English DTS 5.1)"/>
<Stream id="249478" streamType="3" codec="pgs" index="2" bitrate="79" language="English" languageCode="eng" requiredBandwidths="111,111,111,111,111,111,111,111" displayTitle="English (PGS)" extendedDisplayTitle="English (PGS)"/>
</Part>
</Media>

debuglogs_rightafteratlantiscrash.txt (84.2 KB)

Thanks for the quick reply. I don’t see RAM being the issue. I can monitor RAM while Plex is transcoding. I can monitor all performance metrics in fact. None of them spike, at all. RAM usage max, with all those containers running is max 15% used. Further, I’ve been an UnRaid user for about 5 years now. This is the first I’ve ever heard that those containers are resource intensive. Only Sabnzbd has ever been and that’s only when performing an unpacking. I thought a 2700X was kind of OP for what I’m using it for.

I’m sorry, I should have been more specific.

Please do the following:

  1. Settings - Server - General - Show Advanced
  2. Verify DEBUG logging enabled , VERBOSE logging disabled.
  3. Save button if you change anything.
  4. Start Playback
  5. Play 30 seconds
  6. Stop Playback
  7. Wait 20 seconds for logs to flush
  8. Settings - Server - Troubleshooting - Download Logs.
  9. Please attach the ZIP file it gives you.

You gave me the web player logs, not the server log.

OK, sorry about that, and sorry for getting back so long after. But life.

So, couple of things. At first I wanted to give you some clean logs, so I went into my container and deleted the logs, then restarted Plex. I went about starting the movie that had been having so many problems, one of, and of course… nothing. Hummed along like a champ. No stutter, no buffer, no telling me my server isn’t powerful enough.

So, I decided to at least push the server to see if it helped. I ran four movies (could have done more). One was a 4k transcode, and the other 3 were movies I know that we’ve had issues with similar to the other one mentioned above. No issues at all. All four movies played. It put a small tax on my server, I saw 50% utilization out of the CPU and the Ram, 30 ish%. Nothing crazy.

So, with that said, I went ahead and included the logs I took after playing the four movies. I expect this will happen again in a few days when I’m least expecting it.

Thanks for any help. Quick note… I quickly parsed the files and changed some identifiables such as name, user, public ip, to something else. If it’s needed for any reason, just let me know.

Plex Media Server Logs_2020-09-28_21-55-08.zip (449.9 KB)

Thanks for the log.

When you catch it again , please include the problematic logs.
I’ll give you a direct reply path if you wish at that time for privacy. Please let me know.

It’s not unreasonable to see the Ryzen spin up as it did performing the conversion on a number of DCA audio streams to AAC.

So far, this looks good and will serve as a nice baseline when it next goes sideways

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