AdguardTeam / AdguardForMac

Open bug tracker for Mac version of AdGuard
https://adguard.com/
285 stars 15 forks source link

High CPU usage #1407

Closed nikkikom closed 1 month ago

nikkikom commented 2 months ago

AdGuard version

2.13.0.1558

Browser version

No response

OS version

14.4.1

What filters do you have enabled?

No response

What Stealth Mode options do you have enabled?

No response

Support ticket ID

No response

Issue Details

I updated and started new version of AdGuard

Expected Behavior

No response

Actual Behavior

AdGuard worked few days, then I noticed that it consumes 100% of one CPU core without any noticeable network traffic. Attaching two screenshots with CPU and open files information and with call stacks from profiler.

Screenshots

CPU usage and opened files: Screenshot 2024-04-17 at 20 28 14
Profiler: Screenshot 2024-04-17 at 20 27 09

Additional Information

No response

Aydinv13 commented 2 months ago

@nikkikom Hi! Could you update to the new release version and check if it still persists?

nikkikom commented 2 months ago

@nikkikom Hi! Could you update to the new release version and check if it still persists?

The issue is intermittent. Hard to reproduce. Only saw it twice. To the record I am using a number of vpns: Cisco secure client, wireguard, outline. I also use Little snitch.

Lxnii commented 2 months ago

@nikkikom Hi! Could you update to the new release version and check if it still persists?

I've had this same problem with both Mac mini and Macbook Air, upgraded to the latest release version 2.14.0.1592.

eshack94 commented 2 months ago

I am experiencing the same thing. Even after the latest upgrade, I am still seeing this. It started a couple releases ago. It's most noticeable while on YouTube.

This is AdGuard Pro on Mac, specifically it's the com.adguard.mac.adguard.network-extension network extension that has been intermittently causing very high CPU usage.

I think this should be higher priority.

rebreatherccr commented 2 months ago

High CPU 110% Usage is a real problem for me too happens all day long. Restart Adguard doesn't help. Reboot Mac doesn't help. High fan noise is another indicator. Can only remember this starting in the last few days perhaps. MacBook Pro 2014 MacOS Montery 12.7.4 Adguard Latest Version 2.14.0.1592 release

hsbugss commented 2 months ago

image

The problem arises indirectly and irregularly

eshack94 commented 2 months ago

@Aydinv13 Is this something you all are looking into? Can we raise the priority on this? The problem has been consistently recurring and has caused me to need to disable AdGuard entirely. It seems to occur several times a day and happens with some irregularity, but when it happens, CPU rises to 150-200+%. It causes battery to drain quickly.

The issue started maybe 1 or 2 releases ago. I did not notice the issue before then.

Let me know if there's additional info that might be useful for debugging.

Aydinv13 commented 2 months ago

To troubleshoot this issue, we need to get the logs. Here's what we need you to do:

  1. Click AdGuard icon in the menu bar --> Gear --> Advanced --> Logging --> Logging level --> Debug;
  2. Reproduce the issue and remember the exact time it happened;
  3. Menu --> Advanced --> Logging --> Export Logs and System Info...;
  4. Send the archive to apple@adguard.com and mention this issue number in the subject.

In addition, we need you to get the sample of com.adguard.mac.adguard.network-extension process when it reaches high levels.

Example sample_example
Aydinv13 commented 2 months ago

Some improvements have been made in CPU consumption, try the new Nightly please.

jtaylor-software commented 2 months ago

So far the linked Nightly seems to have solved it on my M1 Ultra Mac Studio running 14.4.1. Normally I would see high CPU percentage minutes after launching and that didn't happen this time.

rebreatherccr commented 1 month ago

Working so far so good 2.14.0.1599 nightly, no more high cpu. Will send debug log from previous problem to support anyway. Thanks.

Aydinv13 commented 1 month ago

@eshack94 @nikkikom any news from your end? If it persists please collect data as described here

eshack94 commented 1 month ago

@eshack94 @nikkikom any news from your end? If it persists please collect data as described here

Sorry for the delay, I just saw this message. I will install the new Nightly build now and I'll let you know in a day or so whether the issue persists.

nikkikom commented 1 month ago

@eshack94 @nikkikom any news from your end? If it persists please collect data as described here

No, did not see it again. I am on 2.14.0.1592 now.

eshack94 commented 1 month ago

@Aydinv13 The latest "Nightly" build seems to have fixed the issue for me. I haven't seen the problem happen again. Thank you!