How to Limit Plex Memory and/or CPU Usage

Is there a way to limit memory and/or CPU usage? If so, how

In a VM where you constrain the number of available processors or apply a CPU usage cap and a max memory cap.

If this is Linux, Make sure you understand what memory usage indicators show you. Linux, by nature, will use all of free memory as disk buffer. Since PMS reads a lot of files, “Free” memory will always drop to about 250 MB. It’s instantly reclaimable as needed by the kernel.

So what you’re saying is migrate my Plex install to a vagrant vm and limit the memory there?

That would be one way.

Before going to that effort, May I ask why?

What problems are being seen? (logs would help here too along with a description of the problem)

I’m just running out of memory when . it scans or people are watching things on it.

Please tell me the particulars?

How much memory in the host?
How many concurrent streams?

I ask this because running 4 concurrently transcoded streams in 8GB it more than enough memory and, if media has been properly curated, CPU utilization is 10-20%

I will need to see DEBUG logs as well as system resource utilization to debug further

4 gigs of memory
Just one person watching a movie can meant 3Gs of memory being used and 100% CPU.
I’ll get a debug log next time, but my drive is mounted via rclone.

what’s the processor?

I do agree, 4G isn’t much and bumping to 8GB is both advised and incredibly cheap but depends on the CPU

Also please get the metadata for the item being played. I already have a suspicious as to the root cause.

Hover over item -> Get Info -> View XML

Attach the <media> -------- through ----- </media> (don’t need actor or gengre)

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