I recently upgraded my plex server to version 1.28 from 1.19.
My server now uses 100% CPU without anything playing and there seems to be no disk, network or GPU activity (besides video memory).
Is this normal? My server uses an Xeon 1240Lv5 with 16GB ram and has an < 20TB library.
My CPU is not the newest but it is Skylake (so I’d say not ancient) - I’ve found that it can handle a few streams on CPU transcoding alone.
The OS is Debian 10 (buster).
I can’t stream or use the server for anything else; I have to restart the plex service, then I can stream again. After that slowly (with about 1 or 2 threads at a time) all Plex threads will creep to 100% usage and stay there when eventually 100% usage is reached on all 8 threads.
I’ve let it run for days to see if it would eventually end but it does not seem to.
I’ve had this problem before when upgrading from 1.19. I’ve heard and & read that it might be background scanning or thumbnail generation but how come this has become so much more CPU intense since 1.19 and why is there no disk usage?
Upgrading from PMS 1.19 to the latest version is a rather big step. That’ll give your server quite some work to step-by-step forward-migrate its database etc.
It has been running like this since yesterday, I will leave it overnight also.
What would be a reasonable time for this process to complete?
Also, I’ve postponed updating for a long time because of this problem.
I tried it a few times with different versions all to this result.
Usually I rolled back to 1.19 within a few days because the server became unresponsive after a while (explained by the CPU usage).
I have a folder where I download Plex releases whenever I update.
This is that folder now:
All versions above 1.19 are attempts to upgrade, but with the same result as now.
I also wonder what is happening at a log level ? Is anything happening in /var/lib/plexmediaserver/Library/Application\ Support/Plex\ Media\ Server/Logs/Plex\ Media\ Server.log ? Maybe worth tailing that file to keep an eye on it. Hopefully its doing some database migration and the system is just processing through the huge update from 1.19 to 1.28.
As you mention you had trouble in the past I also wonder if you could have some database corruption ? If you copy your com.plexapp.plugins.library.db to some temp location and run "/usr/lib/plexmediaserver/Plex Media Server" --sqlite com.plexapp.plugins.library.db "PRAGMA integrity_check" does it report ok ?
The log is relatively inactive, showing a few entries every few minutes (checking scheduled updates, obtaining the public address). The last 20 minutes produced about 30 log-lines, all of them debug.
Okay, might just take a long long time considering the the amount of upgrades it’s doing. Maybe a ninja might want to take a look at your logs but it’s a good sign your db returned OK from the integrity check.