I’ve recently run into an issue where my TV Shows dashboard can take anywhere between 15-30 seconds to load and on rare occasions, it times out. I’ve been troubleshooting these for a few weeks and I’m at a loss as to how to solve this issue. Here are a few things to note:
- To keep things simple, I nuked my entire Plex setup and started fresh.
- I added 5-10 shows at a time back into the library, let the metadata refresh in full, then cleaned the bundles, and run an optimize database after each block of shows were added.
- The performance seemed great, loading the dashboard in about 1-2 seconds until I got to around 150 or so shows added.
- The plex database, metadata, bundles, etc are on a Samsung EVO 950 SSD.
- My home dashboard, and movies dashboard load in 1 second or less.
- Plex is running on a server with 96gb ram, and dual Xeon E5645s
- Plex is the only thing running on this machine. Using Unraid as the host OS and Plex via a Docker.
- All of my shows follow the proper folder structure and I use filebot to keep episode filenames consistent.
All of that being said, the one thing I am noticing in the logs (debug and verbose levels on) is that the dashboard seems to have trouble loading when the HubCache expires and it calculates a new HubCache set. There are no errors, but it takes an extremely long time for the HubCache to generate. In the image below, you’ll notice at least for this run, it took about 10 seconds to generate the fresh HubCache from start to finish (thats when the dashboard loads in full).
There are also a few LibraryHubOnly warnings that I can’t really seem to link to anything specific. Along with that, I noticed in the log that it states that there are 81 cached hubs, with a 76.8% hit ratio. I’m not sure what any of this really means, but I’m just stumped at to why generating a fresh HubCache takes so long. I’ve had this issue for about a month or so, but never had that issue before. I’ve also attached my logs in case anyone would like to take a stab at this one. I could easily solve this if Plex just had options to disable calculating recommendations and various “Movies Like X” or “Start Watching” categories but since I can’t I’d rather get to the bottom of what causes this process to take so long.
Plex Media Server Logs_2020-03-02_13-47-26.zip (7.7 MB)
Thank you!
