High CPU usage on Plex server side

Hello there,

Since 8.0.3 on Mac iOS Apple TV. Infuse supercharge my server CPU in both mode : library or not.
The server CPU usage skyrocket at the first second infuse is opened. There’s no transcoding or other scan at the same time. Someone with the same problem ?

Does it continue for as long as you are streaming or just at first? I know there were improvements to the streaming cache so that may be what you’re seeing.

1 Like

It will continue until my server crash or being unresponsive and I don’t need to stream. Just the app indexing. Killing infuse bring back my plex server to life in a couple of minutes if it’s not crashed. I don’t have problems with the official client or kameto running.

You may want to provide what version of Plex you’re using.

So you don’t have to actually play any video, just launching Infuse causes this and it will continue until it locks up without any additional actions like playing a file?

It is the last version 1.41.1.9057. And yes no additional action other than launching infuse. It happens on iPhone / Mac or TvOS

Please pardon my ignorance, does the Plex server have an error log that may give more details as to what’s going on?

Just errors about queries timeout due to cpu usage. Thanks for your time btw.

You’re more than welcome! Time I usually have some available but knowledge of Plex inner workings not so much.

That’s why I stick with Infuse, it does all that background work that Plex does without having to run two different apps.

Maybe one of the Plex gurus will chime in and maybe have some real help. :wink:

My next solution may include a hammer and a trash can so I’ll bow out for now. :rofl:

1 Like

I’ve been seeing the same thing lately. I’m unsure when it started, but essentially a client device (narrowing it down, think it’s the Apple TV) DDoSing the server. When I block the device the CPU spike (100%) goes down immediately.

1 Like

Are you able to replicate this issue, send in a report from Infuse, and post the five digit code here?

Hi send a macOS version with the following diag digits DQPXH

1 Like

Unfortunately It’s nothing I’m seeing on the Infuse side, only server side.

A diagnostics report may still contain a clue as to why you’re seeing this.

Hi there,

After more investigation, it was a filesys perf problem on the server side. Sorry for these false alarm and thanks again for your wonderful app.

See you

1 Like

I think we figured out the issue. On any device when you add favorites it will cause it.

So Shares —> Server —> Add Favorites. Adding libraries to the Home Screen. I’m not sure if it’s trying to pull absolutely everything in like that, but it shoots the CPU usage to 100% for a long time when just viewing the home screen.

To stop the issue, I removed all of the libraries from favorites, then edited home screen to remove everything else.

From what I can tell this is for Plex only, but I’ve only also tested Jellyfin and Emby. Those two seem to only slightly add RAM usage while doing the same thing.

1 Like

I am having the same issue. Seems to crash Plex when clicking the refresh button on the ATV 4k. Sometimes it’ll go through but often it won’t and I have to manually quit Plex and start it up again. Then it works.

Not sure if it’s specifically 8.0.3 or 8.0.2 but I can tell this is happening constantly lately and it’s 100% related to Infuse.

We’re not able to replicate anything like this here.

Even with Library Mode enabled for a Plex share and favorites added to the Home Screen, CPU usage (on a Synology Diskstation RS1221+) never gets above 7% - even when Infuse is scanning through the Plex items.

Having Library Mode enabled for Plex will use a few more server resources since Infuse does need to scan through the items on Plex. This does not happen with Library Mode disabled as things are just loaded on-the-fly as needed.

What size library are you testing? As you know direct-mode was a hit because any library of substace will be destroyed with library mode. This is using a server with a i9 10K.

Do you see anything with this? 835HW If this isn’t enough, let me know.

Been seeing the same thing on my server and came to the same conclusion about the favorites/home screen. I’ve tested this on multiple devices (iPad, Mac, two Apple TVs) with multiple versions (8.0.0 beta, 8.0.3 stable, latest 8.0.4 beta). With each device, as soon as I unpinned the libraries from the home screen and removed the favorites, CPU usage went down. Plex is set up in direct mode in Infuse.

What this looks like to me is that with very big libraries, Infuse tries to load metadata for hundreds of items all at once (ie. in my case, 10-15 libraries pinned on the screen with thousands of items in each).

1 Like