Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AdguardHome high CPU usage and without response suddenly #5674

Closed
3 tasks done
tomac4t opened this issue Apr 2, 2023 · 8 comments
Closed
3 tasks done

AdguardHome high CPU usage and without response suddenly #5674

tomac4t opened this issue Apr 2, 2023 · 8 comments
Labels
waiting for data Waiting for users to provide more data.

Comments

@tomac4t
Copy link

tomac4t commented Apr 2, 2023

Prerequisites

  • I have checked the Wiki and Discussions and found no answer
  • I have searched other issues and found no duplicates
  • I want to report a bug and not ask a question

Operating system type

Linux, OpenWrt

CPU architecture

ARMv7

Installation

Other (please mention in the description)

Pre-install AdguardHome on GL.INet GL-AX1800 router: https://www.gl-inet.com/products/gl-ax1800/

Setup

On a router, DHCP is handled by the router

AdGuard Home version

v0.107.5

Description

What did you do?

DNS with no response suddenly and found CPU usage of AdguardHome is so high.

2023-04-02_18-43

According to #4437, I did

  • Disable Optimistic caching
  • Only keep 4 blocklists
filters:
- enabled: true
  url: https://adguardteam.github.io/AdGuardSDNSFilter/Filters/filter.txt
  name: AdGuard DNS filter
  id: 1
- enabled: true
  url: https://cdn.jsdelivr.net/gh/neoFelhz/neohosts@gh-pages/basic/hosts.txt
  name: neohosts
  id: 1662349650
- enabled: true
  url: https://adaway.org/hosts.txt
  name: AdAway Default Blocklist
  id: 1669113138
- enabled: true
  url: https://raw.githubusercontent.com/crazy-max/WindowsSpyBlocker/master/data/hosts/spy.txt
  name: WindowsSpyBlocker - Hosts spy rules
  id: 1680198205

But recently this situation is more frequent, and I meet this every day. Then I did

  • Disable Log
  • Disable Filters update interval
    But it no help, still continue happened.

I also do #4437 (comment), ssh root@192.168.1.1 -p 22 'curl http://127.0.0.1:6060/debug/pprof/heap' > /tmp/heap on the begining of restart AdguardHome. (send to devteam@adguard.com?) But there is no response when AdguardHome high CPU usage happened:

$ ssh root@192.168.1.1 -p 22 'curl http://127.0.0.1:6060/debug/pprof/heap' > /tmp/heap
root@192.168.1.1's password: 
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
  0     0    0     0    0     0      0      0 --:--:--  0:03:52 --:--:--     0
curl: (56) Recv failure: Connection reset by peer

Expected result

AdguardHome running as DNS service stability.

Actual result

Stopping DNS response and use a lot of CPU, like crash.

Screenshots (if applicable)

Can't open web dashboard.

Additional information

@EugeneOne1
Copy link
Member

@tomac4t, hello and thanks for the report. Verbose log would really helpful for troubleshooting the issue, could you please capture it and send to our devteam@adguard.com? Putting the issue's number to the subject is very welcome.

@EugeneOne1 EugeneOne1 added the waiting for data Waiting for users to provide more data. label Apr 2, 2023
@tomac4t
Copy link
Author

tomac4t commented Apr 2, 2023

had send, thanks.

@ainar-g
Copy link
Contributor

ainar-g commented Apr 3, 2023

Thanks for the heap profile, but the verbose log seems to be missing.

Also, v0.107.5 is a rather old version of AdGuard Home, and there have been a lot of fixes since then. Have you tried backing up your AdGuard Home data and update?

@tomac4t
Copy link
Author

tomac4t commented Apr 3, 2023

My AdguardHome is like custom port by router vendor, I will try to update. I will feedback if there is any update.

@tomac4t
Copy link
Author

tomac4t commented Apr 3, 2023

Had update, and waiting if still have this problem.

@rankokrneta
Copy link

I have the same issue with high CPU usage, partly resolved by setting up swapped 60, but sometimes I need to reboot the router or restart AdGurad service to have DNS working again.

@DeAlexPesh
Copy link

версия: [v0.108.0-b.32]
run on pfsense
webui freezes, and need reboot

adg.log

@tomac4t
Copy link
Author

tomac4t commented May 24, 2023

doesn't high again, consider close.

@tomac4t tomac4t closed this as completed May 24, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
waiting for data Waiting for users to provide more data.
Projects
None yet
Development

No branches or pull requests

5 participants