Ubuntu 18.10, Plex hogging 100% of a CPU-core 24/7 when idle

I upgraded from Ubuntu 18.04, where Plex worked perfectly well for a long time now, to Ubuntu 18.10. After upgrading, I noticed that Plex is now hogging one CPU-core at 100% at all times – it’s literally not doing anything actively, there is no one watching anything, there is no scanning going on, no refreshing of metadata, no generating any thumbnails or anything. The process taking up all the CPU is /usr/lib/plexmediaserver/Plex Media Server, not the scanner or anything else.

I did enable debug-logging, but… well, there’s also literally nothing happening in the log-files after the few minutes it takes for the Plex-server to start up. I am looking at the log-files and Plex hasn’t written anything to them for over 10 minutes now.

Something goes into an infinite loop, but I have no idea what.

1 Like

I forgot to mention that I completely purged Plex in an attempt to fix it, also deleting everything under /var/lib/plexmediaserver and redoing the whole thing from scratch, and the problem persists.

Which version of PMS (Server version, not Web version)?
When you use the previous version , does the problen go away?

I have version 1.14.1.5488-cc260c476 installed, according to dpkg. Also, I said I upgraded Ubuntu, not PMS; the version I have worked fine in Ubuntu 18.04, but not in 18.10.

I removed all libraries from my PMS, no movies or TV-shows or anything left there anymore, and… it’s still hogging 100% CPU and there’s still nothing useful about what’s it doing in the logs.

No matter what I try, PMS goes into a tailspin, even a completely fresh install. I even went and installed Ubuntu 18.04 in an lxc-container under Ubuntu 18.10 and then both the abovementioned Plex 1.14.1.5488 and the 1.15.x preview-version, with no content added to the libraries or anything, and it still did the same thing.

I did notice that there’s a 1.13.10.352 in Ubuntu’s snap-store, which I installed and it seems to be working, so it’s either because it’s a snap-package or because it’s an earlier version. Does anyone have a link to 1.13.10.352 amd64 deb-file, and perhaps 1.14.0-something, so I can test?

Finally found older debs and yup, downgrading PMS fixes the problem, so it’s an issue with 1.14.1 and the 1.15.x!

I am getting exactly the same symptoms on my unraid server. Any time I spin up PMS then 100% of one cpu core is used by plex, with no mention in the logs that I can see of what it is doing.

Did you find any solution to this issue? I have been seeing it for about 2 months now, there are quite a few other people posting about it on this forum but not one of them get a decent reply about what it could be. It always seems to involve PMS installed on Linux in some variation or other.

I have attached my logs in case anybody from support would care to take a look.

A couple of other people I found with the same symptoms and no reply:

Plex Media (3.4 MB)

Yes, it’s caused by UPnP in 1.14.1 or later. Either disable UPnP on your router or install 1.14.0 or earlier PMS.

2 Likes

Thankyou SO MUCH! For over 2 months now I have been grappling witrh this, trying everything I could to stop Plex using 100% of CPU. As soon as I turned off UPnP on my router it dropped to 0% instantly!

You are a hero my friend, Thankyou a thousand times. Hopefully now plex can do the rest and sort out the code.

With so many flawed upnp implementations, they certainly need to handle SSDP responses better.

Phil

I collected the data from the various implementations.
It doesn’t impact everyone.
I cannot replicate it on my pfSense box
Every device on my LAN returns a proper SSDP reply.

This all having been said, the problem report has been submitted to Engineering.

What I find interesting, I have Fedora, QNAP, and Synology. None of those have a problem with the pfSense OR the ISP-provided ActionTec T3200 modem/router.

Same on debian.

1.14.1.5488 is broken
1.14.0.5470 is fine

No further reports are needed.

Thanks.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.

An issue with high CPU when uPnP enabled has been addressed in Plex Media Server 1.16.2.1297 which has just been beta released

See release notes

  • The server could use large amounts of CPU when running on a network with certain routers with UPnP enabled (#9610)