I have Sonarr and Radarr installed in UnRAID using linuxserver’s Docker containers, and they work great most of the time.
When I leave them running, I tend to find either in the morning or after I get home from work, the CPU has been pegged up over 70% for either container (sometimes both). Something seems to be causing the CPU to ramp up, and then it never dies.
Restarting the container returns them back to normal usage (~1%).
Still ongoing, here’s some more details from Radarr this time.
Here are some graphs from my netdata install, showing that at ~3:39 in the morning, the CPU ramped up and stayed there until I restarted it about 5 minutes ago:
The first thing would be trace logs covering the initial spike of CPU along with the corresponding graph, without knowing when it spiked the trace logs haven’t been too helpful yet.
20-2-21 02:59:32.9|Trace|CommandExecutor|CheckForFinishedDownloadCommand <- DownloadMonitoringService [00:00:00.0351770]
20-2-21 03:00:02.8|Trace|Scheduler|Pending Tasks: 0
20-2-21 03:01:23.5|Debug|ProcessProvider|Found 0 processes with the name: Radarr.Console
20-2-21 03:01:23.5|Debug|ProcessProvider|Found 1 processes with the name: Radarr
Around 3:50 all indexer requests failed with time outs. Could be related with the real issue, but nothing weird after that and queries to sabnzbd went fine. I wonder if it’s some previously undiscovered mono issue in mono 5.20.
Either way, correlated that with logs of other incidents.
The ball is in your court atm. We already mentioned you need to collect sonarr logs and look at the time that the cpu usage starts.
Check that vs the radarr logs around similar cpu peaks. There’s a commonality that you need to identify.