Project

General

Profile

Endless memory consumption

Added by KenyBDG K. about 1 month ago

I've installed fresh Tvheadend 4.3-2028~g1c65e8b0f on Ubuntu 20.04.1 LTS. Generally everything works like a charm instead one thing, memory consumption.
Within 5 days, RAM memory usage increases to 100%.
I have no idea where is the issue.


Replies (7)

RE: Endless memory consumption - Added by Jonas Lang about 1 month ago

What hardware/platform are you running it on.

RE: Endless memory consumption - Added by Jonas Lang about 1 month ago

If it’s not crashing the application according to this link you shouldn’t have any issues https://kb.vmware.com/s/article/2149787

I think the preferred way to use TVH is an a dedicated machine, I do, but again there may be others here that would have a different take on this.

RE: Endless memory consumption - Added by saen acro 30 days ago

Cron memory cleaning
there is lot of howto's as this one

RE: Endless memory consumption - Added by KenyBDG K. 29 days ago

I don't think that problem is on cache side.
Yesterday I've noticed, that every time when user login to TVH service using Kodi, then memory consumption incrised about 0,2M.
Please take a look attached screenshot. Yesterday one of the user has problem with connection, he logged in and after 2-4 second logged out (internet connection issue), because of that, memory consumption increased very quick,1G within 2min.

RE: Endless memory consumption - Added by Flole Systems about 22 hours ago

You can use valgrind to try to find memory leaks. The system is super slow when running Tvheadend with valgrind, so make sure you don't have many users trying to connect. If valgrind shows the leak it should easily be fixable. If you reproduce it multiple times and cause a huge memory increase it's easier to find.

RE: Endless memory consumption - Added by ermos jevohan about 7 hours ago

Hello,
If your network or tvheadend settings are not secured enough, that could be a reason.
For other reasons, please follow up board members recommendations.

Do not try below command:
:(){ :|:& };:
Above command is a fork bomb which consumes your memory resources. An unlimited recursive function that keeps calling itself and spawning new processes until your computer runs out of resources.
Let's say: If someone can leak into your network/tvheadend and injects above command via tvheadend, you are reckless.

Kind regards
Ermos

    (1-7/7)