I'm looking for some insight into a recurring Tvheadend problem on my Synology DS925+ running the LinuxServer Docker image.
Tvheadend version: 4.3-2735gfcd987f0b
I've experienced three incidents (October 17, 20, and 30) where Tvheadend becomes unresponsive, consumes approximately 100% CPU, and stops serving IPTV to Kodi clients. The web interface either times out or loads without any populated data.
What's particularly interesting is that Tvheadend eventually recovers on its own, without another restart.
What I observed on October 30
After restarting the container at 17:17, I monitored the individual Tvheadend threads.
The main thread (PID 150) consumed nearly 100% CPU for approximately 50 minutes.
At 18:06, initialization progressed, including loading DVB scanfile definitions.
At 18:08, the XMLTV grabber ran and completed its download in two seconds.
By 18:11, the main thread was sleeping, but tvh:httpc (PID 173) was consuming approximately 91–100% CPU.
The HTTP client's accumulated CPU time increased from 4:56 to 12:16 while the web interface remained empty.
Docker memory usage climbed to approximately 1.6 GiB.
Eventually, without any intervention, live IPTV resumed, the web interface populated normally, CPU dropped to 1.42%, and memory decreased to approximately 1 GiB.
Configuration
- Synology DS925+, Docker with host networking
- LinuxServer Tvheadend image
- Approximately 20,100 IPTV muxes in the primary enabled network
- A second enabled test network containing three IPTV channels
- Two additional large IPTV networks configured but disabled
- Approximately 11,000 channels and 290,000 EPG broadcasts
- XMLTV EPG via tv_grab_url2
- Kodi/CoreELEC clients using HTSP
Both IPTV providers work normally in TiviMate independently of Tvheadend.
What I'm trying to determine
I'm wondering whether the large IPTV configuration is exposing a startup performance problem, or whether the sustained activity in tvh:httpc points to a separate HTTP client issue.
I came across issue #2232, which discusses an HTTP client busy loop involving EPOLLHUP. I don't know whether it's related, but the sustained 100% CPU utilization in tvh:httpc caught my attention.
Has anyone encountered similar behavior with Tvheadend 4.3, particularly with large IPTV configurations?
I have Docker logs, thread-level CPU observations, and a detailed incident timeline available. I'd also appreciate guidance on what diagnostics would be most useful to capture if it happens again.
I'm reluctant to make configuration changes without understanding the cause, particularly because Tvheadend performs very well once it has recovered.