I have a problem with plex eating up memory the longer it runs. Right now I restart it every day to release the memory it is using. I am using PMS 1.15. I have optimized the database and cleaned bundles with no help.
May I have more information please?
Which PMS version specifically?
Is it in a VM or a native installation?
Have you noticed any usage pattern?
1.15.4.994-107756f7e is the version of plex running. It is being ran natively and I do not really see any specific pattern, but within 24 hours of running, I need to stop and restart PMS. When I stop PMS it releases all the extra memory.
Can you tell if the media is being transcoded?
Were photo slide shows being used?
I’m trying to see if the known memory leak is what you are experiencing .
That leak is in the transcoder, and occurs when very short files are played in rapid succession.
I do not have my photos set up in PMS. How short of a file does it have to be? Does the memory leak also happen when you play a movie, but only watch a short segment of it? Does the memory leak also happens when the PMS sits idle?
Also is there an easy way to determining if PMS is transcoding?
Yes, Look for / watch for FFMPEG statements in the log
something like:
sudo tail -F "/var/lib/plexmediaserver/Library/Application Support/Plex Media Server/Logs/Plex Media Server.log" | grep FFMPEG
Redirect that output to a file or tee it as you need.
From what I can tell it seems like it is the transcoding. Is there any type of fix for it?
I’m having a similar problem. It started sometime around April/May and does it up to the current versions. Something about transcoding, it’ll use all the ram I give it (currently 2gb for the LXC) when I first started out, 400mb was fine. When the memory gets totally topped out everything works but transcoding fails.
I have been just waiting hoping that an update will fix it but finally decided to do some research and this is the only thread I could find on it.
-JS
The current release, 1.16.2 contains fixes for the memory leak. It’s unknown if there is more than one leak, but it looks promising.
I can only suggest you try it and report back.
plex is eating away at system memory. Within 24 hours or less, the server has consumed all of the system memory and forces me to reboot or restart plex if there is enough memory available to open a terminal. On a fresh start, the server consumes 64.4 MiB. But after 24 hours, it can consume as much as 3.9 GiB. My system is Ubuntu 19.04 with an AMD® Fx™-6300 six-core processor, GeForce GTX 560 Ti/PCIe/SSE2 video card, 8GB of system memory, 64-bit system running gnome 3.32.1
Can you provide any additional information (system logs, plex logs, graphs, something) which shows this behavior beyond “Me too” ?
Here is a screenshot of the system monitor only a few minutes after a restart of plex. I will post one with the system memory in a few hours.
It’s allocated up to 2.9 GB of virtual space but only using 70 MB of actual RAM.
This is very normal.
As you can see by this screenshot that it is now using over 500MiB and the plex dlna server is now up to 4.0 Gib. This was after about 10 hours, It will continue to climb on RAM usage.
Yes I agree, but after a few hours this will change. See the second screenshot.
I talked about this months ago, still not fixed!
Clarification please?
With DLNA server ON or OFF ?
If it’s with DLNA enabled, then this is known and waiting for engineering to correct. Workaround is to turn off DLNA.
If DLNA is not enabled then there’s a problem which is worthy of further investigation.
I will turn off DLNA server and let it run over night and see what the results are. The plex server also increases in ram usage the screen shot I sent showed it increase from 61 MiB to 500 MiB and it usually grows even larger than that.
Apparently turning off the DLNA server stopped the major memory leak. Thank you for the information. The server still slowly uses memory but at a normal pace now.

