Server Version#: 1.41.5.9522 - Linux (Docker in Proxmox LXC)
Player Version#: iOS 2025.10.2 and Web
I started a thread over in the New App Experience forum to discuss the performance problem I was seeing, which you can check out here, but after troubleshooting I’ve narrowed the problem down to the new app triggering a particular server behavior that the web app and the other older apps (i.e. Android TV/Fire TV) do not trigger.
What I am observing is that when opening certain problematic items, in the new app t can take five minutes or more before the detail page displays. During that time, one or more Plex Media Server threads on the server spin at 100+% CPU.
I’ve reproduced the issue by making direct HTTP GET requests and observed that the difference is that the new iOS app passes the parameter includeRelated=1 to the GET request to /library/metadata/ wheras the web app is not. I can reproduce the issue readily on problematic items by using the View XML option in the web app, which also passes includeRelated=1. If I change includeRelated to 0 or remove the parameter, the item details return instantly. WIth includeRelated they take 5+ minutes to come back.
I haven’t figured out the pattern of the items that seem to trigger this behavior, but I have observed that they all appear to be movies. I haven’t reprod this in my TV libraries. Items that trigger the behavior are consistent however. The same item will cause the server to spin at 100% CPU for five minutes surviving server restarts if includeRelated=1 is included in the request. Items that do not trigger the problem consistently do not trigger the problem.
I’ve tried to rule out database issues by optimizing the DB within Plex and also doing an offline VACUUM, ANALYZE, and REINDEX with Plex SQLite. The integrity check finds no database errors.
Verbose logging does not provide any clues. There are no log messages showing what the server thread is doing spnning the CPU in between the HTTP request and Complete line. If I turn on verbose logging, I only see a message like this immediately before the Complete:
Apr 02, 2025 20:42:08.820 [136858015996728] VERBOSE - It took 353.1 sec to serialize a list with 1 elements.
Apr 02, 2025 20:42:08.821 [136858147420984] DEBUG - Completed: [10.70.2.134:64760] 200 GET /library/metadata/170854?includeExtras=1&includeOnDeck=1&includeRelated=1&includeReviews=1 (14 live) #928 TLS GZIP 152638ms 11376 bytes (pipelined: 4)
Any thoughts as to what would be causing this?