AdGuardMiniForMac icon indicating copy to clipboard operation
AdGuardMiniForMac copied to clipboard

Draining battery

Open jpcamposr opened this issue 4 years ago • 5 comments

Prerequisites

Please answer the following questions for yourself before submitting an issue. YOU MAY DELETE THE PREREQUISITES SECTION.

  • [x] I am running the latest version
  • [x] I checked the documentation and found no answer
  • [x] I checked to make sure that this issue has not already been filed

Problem Description

Using my MacBook Pro 2019, I have several extensions enabled on Safari. Throughout the span of several weeks I've been monitoring the CPU, RAM, and Energy usage of Safari as a whole. At moments my battery completely drained in a matter of 2 to 3 hours which is completely abnormal. Disabling the extensions one by one, I noticed that disabled AdGuard all together decreased Safari from, per the Activity Monitor, 140 energy impact to between 1 and 4.

Proposed Solution

Optimize the battery usage of the extension.

Alternatives Considered

Additional Information

jpcamposr avatar Jun 08 '22 01:06 jpcamposr

Hi @jpcamposr There was a problem only slightly worse than yours. I solved it by simply switching to AdGuard for Mac.

  • Before:

Kernel panic: com.apple.Safari.ContentBlockerLoader #704

  • Now: Screen Shot 2022-06-08 at 20 45 44

Oleg-Chashko avatar Jun 08 '22 18:06 Oleg-Chashko

@jpcamposr Hi! We'll research the issue furthermore, thanks for the report. Although it's quite weird for the application to drain battery in 2 hours.

Birbber avatar Jun 10 '22 14:06 Birbber

I'm seeing something similar on my MacBook Pro 2019 as well, although mine manifests as increased fan noise (my MacBook is always plugged in) Open Safari, fans ramp up from (usually) off to high speed. Disable the AdGuard extension and it doesn't happen. Chromium based browser (Brave) with uBlock Origin also run silent, so its not blockers in general. Just AdGuard on Safari. MacBook install is only a couple of months old. Removed/readded etc stopping short of a full system rebuild but it happens every time

IanRandall avatar Aug 02 '22 13:08 IanRandall

I had to switch to another adblocker for the moment…

The latest macOS updates for Big Sur and Monterey are somehow causing AdGuard to make the "kernel_task" process use all the CPU:

  • at the start of the app
  • at the start of Safari
  • and randomly after opening Safari, sometimes spiking for 10 full minutes…

WeedyWeedSmoker avatar Aug 06 '22 09:08 WeedyWeedSmoker

Looks like the process "com.apple.Safari.ContentBlockerLoader" using up a ton of CPU at start up is a common issue: https://www.google.com/search?client=safari&rls=en&q=com.apple.Safari.ContentBlockerLoader&ie=UTF-8&oe=UTF-8

gedw99 avatar Oct 27 '22 11:10 gedw99

Please update to AG Mini and check if the problem is relevant. I'll close the issue for now.

windwak3r avatar Apr 23 '26 10:04 windwak3r