Plex using 100% of CPU randomly when idle

i can test. but as said since the beginning, this is really hard to replicate, is happen at any time, doing anything, and happen like one a week or more. sometimes 2 times in a day.

im the only user, no external access, no library updated of any kind only manual (this is the first thing I did), all task are disabled, there is no optimizations enabled for devices or anything.

only 1 time it happen during playback on TV. a few times happen when playing games on the pc and the games started to lag like hell. and a few times happen when I was sleeping.

so I started to close the server when im not going to use it for a while.

i tried to replicate doing library updates, multiple library updates in a few seconds, removing all the plugins and using only the default ones, with no success. this was tested a few month ago when i started to have this problem.

i also reinstalled the server (without deleting my data)

A library update doesn’t really tax the system. Try an actual library refresh.

where? I only see one “library update” on plex web. from the 3 dots of “library” the seconds option?

“refesh” can only be done 1 library at a time. Click the 3 dots to the right of an actual library.

Also, “library update”? That’s not right. That setting was changed a long time ago to “scan library files”. Can you check what Web version you are running? Something doesn’t seem right.

sorry i dont use english.

3rd from the bottom. The one about “metadatos”.

did it and nothing. only 2 or 5% cpu usage. and random usage of 300kb/s on a 6mb/s conection for a few minutes.

I’m curious about this myself, as Plex will randomly start maxing the CPU, sometimes for a brief period, and sometimes for extended periods, requiring either Plex to be restarted, and sometimes requiring the computer to be restarted.

I’ve been putting this down to library updating, but now I’m not so sure. On top of that, it seems like Plex is lately getting stuck when doing library updates, even on smaller libraries.

I’ll keep an eye on things and upload the logs, although you’ll need to let me know which one I should specifically copy and paste – the log file download I just did was 4.5Mb.

Do you have “generate chapter thumbnails” enabled in settings-library? That would cause a 100% spike until it’s done.

generate thumbnails is set to Never

Well, something is going on, but without the PMS logs at the time it happens, it’s not possible to know for sure what is going on.

I’ll see about grabbing the logs when this happens. When it does happen, it seems to spawn multiple instances of PlexScriptHost, resulting in Plex having to be shut down and restarted.

You know, it keeps occurring to me that Plex For Windows really needs a 64 bit rewrite. 32 bit places an unfortunate set of limitations on the app.

Plexhammer Plex Media Server Logs_2018-08-28_23-30-50.zip (4.1 MB)
Alright, here’s the latest logs, and a screencap of Task Manager (Windows 7, Dell Optiplex 760, 8Gb) that I grabbed while various bits of Plex were rollerblinding numbers – why the devil is the transcoder going like the clappers when I’m not actually playing anything from Plex right now, never mind anything that would rerquire transcoding?

I wasn’t fast enough to catch this when CPU hit 100% – Plex was ratchetic up and down, and so was the cumulative number. Still dragged the computer to a standstill.

Plex on Brainbuntu was also doing an automated library update, and once again got stuck at the first library, just sitting and spinning. Once I hit cancel scan, ir moved on, and seems to be operating as intended.

If this keeps up, I shall have to kill the automated updates and do them manually.

is not the same problem that the op. as you can see high cpu usage on plex media scanner, transcoder exes.
check the images on op, there is no that exes listed on process list, only multiple plexscripthost.

ontopic: didnt happen since 1 month. i dont know if any update changed something. but since is not replicable following steps, i going to reply if happen again in the future.

I don’t see the transcoder working in your log. Do you remember what time this happened? I do see you refreshing libraries, but I don’t see any activity for the transcoder.

The screencap (which shows the transcoder grinding away) and the logs were gathered just before I uploaded them, so about 11.30pm AZ time last night. I’m going to upload a screencap of Task Manager showing the post-restart state of Plex – as you’ll see, it’s pretty quiet despite all of the scripthost stuff.

I’m also uploading the latest log and database (database on the next rock. Plex is taking its time exporting it.)

Plex Media Server Logs_2018-08-29_12-38-40.zip (4.9 MB)
Plex1230pm%2008-28-2018

Or maybe I won’t upload the database…I suspect it’s huge.

To add a further comment…this is what Im saying about the transcoder grinding away: I wasn’t transcoding anything at all during that period, yet the .exe was thrashing away like it was trying to choke through a 40Gb 4K file.

1 Like

I’ll have to stick the database file on Google Drive, it seems.

Here’s even more recent logs and screencap. As you’ll see, the transcoder is going – not sure it should be, given that music is supposed to be direct play. Is Plex transcoding FLAC to MP3 or something?

Plex Media Server Logs_2018-08-29_12-52-31.zip (4.6 MB)

Aaaah, I see, it’s converting it to AAC. Why?

Edit: Never mind. Apparently an inefficient methodology for playback, reducing everything to either MP4 or AAC?