Slow loading

Server Version#: Version 1.16.5.1554
Player Version#: NA

Hello,

I recently started encountering an issue where plex takes a while to load, for example on the web it takes ~10s for the web interface to load and display, this used to takes less than 1-2s. Nothing has changed really as far as my set up. This happens whether im running transcodes and conversions or not, at first I thought it was because of that but it seems to be getting worse.

FWIW I checked my hard drive read/write speeds:

/dev/sdb2:
Timing cached reads:   26122 MB in  1.99 seconds = 13123.74 MB/sec
Timing buffered disk reads: 368 MB in  3.01 seconds = 122.20 MB/sec

I have also optimized the DB and cleaned the bundles.

Plex Media Server Logs_2019-09-09_19-55-06.zip (2.9 MB)

10 seconds to load the panel of posters or for the videos to start playback?

How many items are being loaded for display? (number of movies / music / photos )
Has the quality of your video files improved to the point where transcoding is required? the 3770 isn’t a fast chip when it comes to transcoding.

I also see you trying to transcode 2160p. Its hardware ASIC will do the video if H.264 but the subtitles must be done by the CPU along with the audio.

Before I go further into the logs about what I see, can you give further guidance to help me focus in on a finite example?

It seems to be just loading the library, not the actual transcoding. I went ahead and decided to keep a 1080p optimized version for my friends who are still suck in the 1080p world to alleviate that issue, takes an extra couple hundred GB but it’s cheaper than upgrading the processor.

Here is an image of what’s taking 10s to load:

was the server otherwise idle when you did that?

I’m not a player guy so can’t speak much to it. (OS / backend guy here)

I don’t have that difficulty myself on an i7-3740qm with a lot more in the library than that.

You’ve done the full: Scan, Empty Trash, Clean Bundles, and Optimize (in that sequence) ?

Let me be sure, ill run them in that order again. I’m just trying to figure out if this is more of an OS performance issue. When I first set this up and for some time after, no issues. Just started about a week or so ago.

How is it loading up on the television as well (tvOS player) ?

It definitely feels slower, sometimes even movie posters will be blacked out like I don’t have them (or it didn’t get a response with it) but they are definitely there when I check everything.

Other thing to check… crazy as it may be… networking.
If it’s all wifi, check the bonding and how badly loaded. If 2.4 Ghz band, there’s a lot of interference which easily will make it crawl

I have this hardwired so I should be okay on that front. I did a Speedtest:

trever@server:~$ speedtest-cli

Retrieving speedtest.net configuration...

Testing from AT&T U-verse (XXX.XXX.XXX.XXX)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by AT&T (San Francisco, CA) [0.62 km]: 6.993 ms

Testing download speed................................................................................

Download: 634.44 Mbit/s

Testing upload speed................................................................................................

Upload: 297.76 Mbit/s

trever@server:~$ speedtest-cli

Retrieving speedtest.net configuration...

Testing from AT&T U-verse (104.1.91.238)...

Retrieving speedtest.net server list...

Selecting best server based on ping...

Hosted by AT&T (San Francisco, CA) [0.62 km]: 6.216 ms

Testing download speed................................................................................

Download: 639.25 Mbit/s

Testing upload speed................................................................................................

Upload: 294.27 Mbit/s

The server and web/client run on the same system?

Yes its all on the same system.

My slowness is a little different and is a bit intermittant. It seems like it started after one of the recent server updates but I can’t be sure as I just don’t track things that closely. I typically notice it in a couple different areas…We have 4 managed users in our house and it often sits for a while at the “loading users” screen before the users pop up. And I listen to podcasts on my phone and it often takes quite a while for it to load up my currently playing item (or list of where I’m at in any given podcast if I have several). I’m pretty sure that both of these are related more to the Plex side of things than my own server.

To make it worse, It’s more the app/operations side which is something I really can’t help with much at all.

@anon18523487

Might you be able to help here?

Slow loading of the Home page could be something with the Web client. You’ll need to enable logging for Plex Web, reload the Home Page, then get me the log to review.

I quickly looked at the server log and didn’t see anything on the server side to indicate the server was responding slowly.

text.txt (54.1 KB)

Looks like you’re running an old version of web.

X-Plex-Version": “3.108.2”,

Does that not get updated with the server updates?

Oh yeah, that is the latest version that comes with PMS. Have you tried the hosted version which is newer to compare?

I don’t see a difference when trying the hosted.

It happens also on the clients where they are extremely slow load the data

I see a lot of : 10:41:42.302 PM Sep 15, 2019 22:41:42.302 [0x7f007effd700] WARN - Waited one whole second for a busy database.

could that be the cause? I have a firecuda running this, so I’m confused as to why it would be so slow randomly.

This almost seems to be a server issue and not client? @ChuckPa what do you think?