AdguardForWindows icon indicating copy to clipboard operation
AdguardForWindows copied to clipboard

`AdguardSvc.exe` is using 4.5GB of RAM

Open war59312 opened this issue 1 year ago • 27 comments

AdGuard version

7.16

Browser version

Edge 120.0.2210.144

OS version

Windows 11 23H2 (OS Build 22631.3007)

What filters do you have enabled?

AdGuard Base filter, AdGuard Chinese filter, AdGuard Dutch filter, AdGuard French filter, AdGuard German filter, AdGuard Russian filter, AdGuard Spanish/Portuguese filter, AdGuard Tracking Protection filter, AdGuard Social Media filter, AdGuard Annoyances filter, EasyList Czech and Slovak, EasyList Italy, Liste AR, Estonian List, I don't care about cookies

What Stealth Mode options do you have enabled?

No response

Support ticket ID

No response

Issue Details

Unkown, just realized the computer going slow and opened Process Explorer and found that AdguardSvc.exe using 4.5GB of RAM.

Actual Behavior

No response

Expected Behavior

Don't expect for AdguardSvc.exe to be using 4.5GB of RAM

Screenshots

No response

Additional Information

Other filters:

AdGuard Ukrainian filter Persian Blocker IndianList

war59312 avatar Jan 24 '24 23:01 war59312

AdguardRAM2 AdguardRAM1

Few mins later now to 4.8GB of RAM usage. AdguardRAM3 And now adguard just crashed.

war59312 avatar Jan 24 '24 23:01 war59312

Внедрили поддержку 64-битности.) Попробуйте сегодняшнюю 7.17 beta 1, где некоторая оптимизация AdguardSvc.exe.

zubrRB avatar Jan 25 '24 11:01 zubrRB

I see, perfect timing eh

Upgraded my Adguard to 7.17 beta 1.

war59312 avatar Jan 25 '24 21:01 war59312

@war59312 is it still relevant?

... AdguardSvc.exe using 4.5GB of RAM.

Aydinv13 avatar Jan 29 '24 14:01 Aydinv13

RAM Afraid so, still happening with 7.17 beta 1.

All RAM is in use.

Seems to be tied to Edge, as once I close Edge I see Adguard SVC return to normal RAM use, below 50MB.

war59312 avatar Feb 02 '24 13:02 war59312

@war59312 could you please provide us with adguard.db file (C:\ProgramData\Adguard\adguard.db) and your settings (Settings -> General Settings -> Export settings)? Send it all over here [email protected]

Aydinv13 avatar Feb 15 '24 15:02 Aydinv13

I'm experiencing similar. Except it's using 30 GB memory. I just sent a message to devteam.

rotu avatar Feb 26 '24 18:02 rotu

@war59312 and @rotu, along with the sent logs and settings could you please provide us with the memory dump for the leaking adguardsvc.exe process - the small instruction you can find here

adbuker avatar Feb 27 '24 08:02 adbuker

@adbuker how do you recommend I transfer the memory dump? The larger one is 8 GB compressed

Edit: I wound up using SwissTransfer by infomaniak to transfer the files.

rotu avatar Feb 27 '24 16:02 rotu

@rotu , could you please upload to any file sharing you prefer

adbuker avatar Feb 28 '24 06:02 adbuker

@rotu is it possible to send us the dump (using a file host service)? Have you tried to check if the problem still appears after resetting the settings to default?

northis avatar Mar 11 '24 16:03 northis

  1. I sent several dumps to the [email protected] email already. Do you have access to that inbox and file links?
  2. I tried again after reinstalling but I don’t think I tried with default settings. I’m doing that now.

rotu avatar Mar 11 '24 22:03 rotu

@northis I reset the settings to default and this issue still appears. It's probably a massive hint that, in resource monitor, the "Commit" column is showing several gigabytes whereas the "Working Set" is reasonable.

Anyway, do you still want that dump?

rotu avatar Mar 14 '24 21:03 rotu

@rotu We are still working on it, your dump is very helpful, thank you. By the way, do you use AdGuard Assistant browser extension? You can try to reinstall it and check for the memory consumption again.

northis avatar Mar 29 '24 10:03 northis

I had the extension enabled and I just disabled it. I highly doubt that was a relevant issue since the problem clearly happens in the AdguardSvc.exe process, and when no browsers are running.

rotu avatar Mar 29 '24 17:03 rotu

@northis After disabling AdGuard Assistant, I can confirm the problem is still happening. Here are the memory details from sysinternals Process Explorer:

image

rotu avatar Apr 01 '24 18:04 rotu

@rotu It is good you have Process Explorer. Could you please share the content of .NET Performance tab?

northis avatar Apr 08 '24 11:04 northis

image

rotu avatar Apr 08 '24 22:04 rotu

@rotu It looks like you have software installed that keeps changing your system DNS. This causes AdGuard to reload the protection.

northis avatar Apr 12 '24 13:04 northis

@rotu we are fixing this now, could you please reproduce the issue and send us debug logs? Here is how to collect them. Thank you in advance.

northis avatar Apr 12 '24 14:04 northis

@rotu It looks like you have software installed that keeps changing your system DNS. This causes AdGuard to reload the protection.

Interesting. I can see how this would manifest an existing memory leak but it doesn't sound like a root cause

As for DNS: Docker desktop may be the most likely culprit. It does do some local DNS resolution, and I do have that running. I have used ZeroTier in the past but I don't think it's running. I also (rarely) run Unifi Network Server on my computer to manage network equipment.

I've sent debug logs to the devteam email

rotu avatar Apr 12 '24 16:04 rotu

@rotu thank you for the logs. We prepared this build with possible fix, can you try it?

northis avatar Apr 15 '24 09:04 northis

@northis What's the expected memory usage? I'm still above 500MB from AdguardSvc alone, which seems excessive next to the ~100MB taken up by com.adguard.mac.adguard.network-extension on Mac.

rotu avatar Apr 15 '24 19:04 rotu

I can see today, on 7.17 nightly 26 (4701) that memory usage on AdguardSvc is up to 640 MB, so it looks like there are still memory leaks.

rotu avatar Apr 16 '24 20:04 rotu

same with 7.17.0. (4705), after 2 days of runtime, around 940 MB (at least far better compared to before, 7 days with 40GB)

GerhardSauer avatar Apr 22 '24 07:04 GerhardSauer

after 5 days 1,78 GB

GerhardSauer avatar Apr 25 '24 21:04 GerhardSauer

The image says all. memory_leak

memory_leak2 memory_leak3

email to dev team sent with memory dump and other details.

GerhardSauer avatar May 08 '24 02:05 GerhardSauer