Server Version#: Version 1.16.5.1554
Player Version#: Version 4.4.1 (web client)
Headless ubuntu server VERSION=“18.04.3 LTS (Bionic Beaver)”
Pentium® Dual-Core CPU E6500 @ 2.93GHz
MemTotal: 4030088 kB
Recently migrated to a Linux PMS setup from a MacOS and have noticed that memory on the server gets eaten up within a day or so. If I catch it in time, I can restart PMS over a ssh connection, but if I don’t get it in time, I have to do a hard reboot.
Not much for recordings or use these days, but with the fall tv schedules around the corner, it’ll ramp up.
What the best way to start tracking down this problem? From other threads on the same topic I see the following:
If you entered you postal code and selected a lineup from Plex then you are not using your own XMLTV file. I know with my issue I can have the dashboard open in a separate window/tab then click refresh guide data in another tab. When I do that I can see the memory usage bump up for the refresh and never drop back down
yes the memory leak stops when the DVR is deleted. I’m going to let it run a bit without the DVR enabled, see if I can get a leak while streaming on different devices.
well, here’s a “strings” output of memory dump locations that grow as time progresses.
Might help track down a location in the code to look for the leak. I’ll try this a few more times and see if I can get the same results…
Also of note: When I enabled the DVR, I only enabled 149 of the 385 available channels - no SD, no music and only unique HD channels). The memory leak is much slower now.
Going to CRON a nightly restart and forget about it.
Just in case anyone else is on Ubuntu server and needs to set up CRON, don’t forget to set your timezone too! - and use root’s crontab (sudo crontab -e)