AdGuardHome icon indicating copy to clipboard operation
AdGuardHome copied to clipboard

High CPU Usage and Service Crash in v0.107.61 Under TLS Handshake Failures and DNS Upstream Timeouts

Open danielraffel opened this issue 1 year ago • 4 comments

Prerequisites

Platform (OS and CPU architecture)

Linux, AMD64 (aka x86_64)

Installation

GitHub releases or script from README

Setup

On one machine

AdGuard Home version

v0.107.61

Action

Since upgrading to v0.107.61, AdGuard Home experiences a sudden CPU spike up to ~180% usage and then crashes/restarts roughly once per day.

This issue was not observed on earlier versions.

Expected result

AdGuard Home should maintain stable CPU usage and operate continuously without crashing.

Actual result

•	CPU usage spikes to ~180% unexpectedly.
•	Application crashes and a script eventually auto-restarts the server
•	Occurs daily, seemingly without manual interaction.

Additional information and/or screenshots

Observed behavior: Regular TLS handshake errors and DNS upstream timeouts flood logs, corresponding with CPU usage spikes that eventually lead to service crash or watchdog-triggered VM reboot.

Error samples: [error] http: TLS handshake error from 127.0.0.1:xxxxx: remote error: tls: bad certificate server=https ERROR response received addr=https://family.adguard-dns.com:443/dns-query proto=tcp status="request canceled (Client.Timeout exceeded while awaiting headers)"

While I don't see a specific issue

✅ TLS issues and DNS timeouts are stressing AdGuard Home. ✅ Large volume of error spam may explain why CPU usage explodes.

danielraffel avatar Apr 29 '25 06:04 danielraffel

Hi,

  1. Are you able to provide anymore logs/details about the crash(es)? There is an option (you'll have to edit yaml) to get detailed logs.
  2. Can you reproduce the same issue if you roll back to the previous version you were using?
  3. Do you have any other network issues ongoing? It appears from the small log snippet you've provided ADH is having trouble reaching the AdGuard servers for the family protection blocking. What happens if you temporarily disable this feature?

I haven't seen any other similar issues to this posted, so I would have to assume at the moment this is something local to your setup. But please look at the steps above and report back.

tjharman avatar May 07 '25 18:05 tjharman

I've recently encountered a similar issue with intermittent high CPU and memory usage. After investigation, it turned out to be the AdGuard Home integration in Home Assistant. It periodically requests paths like /control/stats from the server to obtain information. Disabling this integration resolved the problem. You can try logging into the AdGuard Home management interface in your browser first, and then attempt to access this path to observe if AdGuard Home's CPU usage spikes.

sky92682 avatar May 19 '25 09:05 sky92682

@danielraffel Is this still a problem? Did you get anywhere with logs etc?

tjharman avatar Jul 01 '25 01:07 tjharman

I'm closing this issue due to a lack of response. If you encounter this problem again, please reopen this issue or create a new one.

sofvaskina avatar Aug 28 '26 10:08 sofvaskina